أَعُوْذُ بِكَلِمَاتِ اللّٰهِ التَّامَّاتِ مِنْ غَضَبِهِ وَعِقَابِهِ ، وَشَرِّ عِبَادِهِ ، وَمِنْ هَمَزَاتِ الشَّيَاطِيْنِ وَأَنْ يَّحْضُرُوْنِ
Aʿūdhu bi kalimāt-i-llāhi-t-tāmmāti min ghaḍabihi wa ʿiqābih, wa sharri ʿibādih, wa min hamazāti-sh-shayaṭīn wa an yaḥḍurūn.
I seek protection in the perfect words of Allah from His anger and punishment, and from the evil of His servants, and from the evil suggestions of the devils and from them appearing to me.
ʿAmr b. Shuʿayb narrated from his father, who narrated from his grandfather, that the Messenger of Allah ﷺ said: “When one of you becomes frightened during sleep, then let him say: [the above]. For verily, they shall not harm him.” He said: “So ʿAbdullah b. ʿAmr (raḍiy Allāhu ‘anhu) used to teach it to those of his children who attained maturity, and those of them who did not, he would write it on a sheet and then hang it around their neck.” (Tirmidhī 3528)