Mishkat al-Masabih 2423
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: يَا رَسُولَ اللَّهِ مَا لَقِيتُ مِنْ عَقْرَبٍ لَدَغَتْنِي الْبَارِحَةَ قَالَ: أَمَا لَوْ قُلْتَ حِينَ أَمْسَيْتَ: أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ شَرِّ مَا خلق لم تَضُرك . رَوَاهُ مُسلم
From Abu Hurayrah, who said: A man came to the Messenger of Allah ﷺ and said: "O Messenger of Allah, what I suffered from a scorpion that stung me last night!" He said: "If only you had said, when you reached the evening: I seek refuge in the perfect words of Allah from the evil of what He has created, it would not have harmed you." Reported by Muslim.