Khawlah bint Hakim reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever enters a residence and then says, ‘I seek refuge in the perfect words of Allah from the evil of what He created,’ nothing will harm him until he departs from that residence.”
Source: Ṣaḥīḥ Muslim 2708
Grade: Sahih (authentic) according to Muslim
عَنْ خَوْلَةَ بِنْتَ حَكِيمٍ السُّلَمِيَّةَ قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ مَنْ نَزَلَ مَنْزِلًا ثُمَّ قَالَ أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ شَرِّ مَا خَلَقَ لَمْ يَضُرَّهُ شَيْءٌ حَتَّى يَرْتَحِلَ مِنْ مَنْزِلِهِ ذَلِكَ
2708 صحيح مسلم كتاب الذكر والدعاء والتوبة والاستغفار باب في التعوذ من سوء القضاء ودرك الشقاء وغيره