I was sitting with the Messenger of Allah ﷺ when one of his companions came and said, "Messenger of Allah, I was stung last night and could not sleep until morning."The Prophet ﷺ asked, "By what?"The man replied, "A scorpion."The Prophet ﷺ said, "Had you said when evening came, 'I seek refuge in the perfect words of Allah from the evil of what He has created,' it would not have harmed you, Allah willing."
كنت جالسا عند رسول الله ﷺ، فجاء رجل من أصحابه، فقال: يا رسول الله لدغت الليلة، فلم أنم حتى أصبحت. قال ماذا. قال عقرب. قال: أما إنك لو قلت حين أمسيت أعوذ بكلمات الله التامات من شر ما خلق لم تضرك إن شاء الله.
Abu Dawud (3898) narrated it via Zuhayr (that is, Ibn Muawiya), Ahmad (15709) via Shubah, and Nasai in Amal al-Yawm wal-Layla (593-596) via Wahib (that is, Ibn Khalid), Zuhayr, Sufyan (that is, Ibn Uyayna), and Shubah, all of them from Suhayl bin Abu Salih, from his father, from a man from Aslam, who mentioned it. The wording given is that of Abu Dawud. Its chain of transmission is sahih.This hadith was thus transmitted by Suhayl in two forms, from Abu Hurairah, and from a man from Aslam, and both are sahih. Ibn Hajar pointed to this in Nataij Afkar (2/360).