حَدَّثَنَا إِسْمَاعِيلُ بْنُ بَهْرَامَ، حَدَّثَنَا عُبَيْدُ اللَّهِ الأَشْجَعِيُّ، عَنْ سُفْيَانَ، عَنْ سُهَيْلِ بْنِ أَبِي صَالِحٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ لَدَغَتْ عَقْرَبٌ رَجُلاً فَلَمْ يَنَمْ لَيْلَتَهُ فَقِيلَ لِلنَّبِيِّ ـ صلى الله عليه وسلم ـ إِنَّ فُلاَنًا لَدَغَتْهُ عَقْرَبٌ فَلَمْ يَنَمْ لَيْلَتَهُ ‏.‏ فَقَالَ ‏"‏ أَمَا إِنَّهُ لَوْ قَالَ حِينَ أَمْسَى أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ شَرِّ مَا خَلَقَ - مَا ضَرَّهُ لَدْغُ عَقْرَبٍ حَتَّى يُصْبِحَ ‏"‏ ‏.‏

It wasnarrated that Abu Hurairah said: “A scorpion stung a man andhe didnot sleep all the night. It was said to the Prophet (PBUH): ‘So-and-sowas stung by a scorpion and he did not sleep all the night.’ Hesaid: ‘If he had said, last night: A’udhubikalimatil-lahit-tammatimin sharri ma khalaq (I seek refuge in thePerfect Words of Allah fromthe evil of that which He has created),the scorpion sting would nothave harmed him, until morning.’” Translation Not Available

Book Ref: Sunan Ibn Majah Book 31 Hadith 3518
Web Ref:  Sunan Ibn Majah Vol 4 Book 31 Hadith 3518