Mishkat al-Masabih

Khaula daughter of Hakim said she heard God’s messenger say that if anyone says when he alights somewhere, "I seek refuge in God’s perfect words from the evil of what He has created," no evil will befall him till he departs from that alighting-place of his. Muslim transmitted it.

وَعَن خَوْلَةَ بِنْتِ حَكِيمٍ قَالَتْ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: " مَنْ نَزَلَ مَنْزِلًا فَقَالَ: أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ شَرِّ مَا خَلَقَ لَمْ يَضُرَّهُ شَيْءٌ حَتَّى يرحل من منزله ذَلِك ". رَوَاهُ مُسلم