Sunan Abi Dawud, Book 29, Hadith 45 (Abu Dawud 3900)

Narrated AbuHurayrah:

A man who was stung by a scorpion was brought to the Prophet (ﷺ). He said: Had he said the word: "I seek refuge in the perfect words of Allah from the evil of what He created, "he would not have been stung, or he said, "It would not have harmed him."