Protection from Nightmares
A man came to the Prophet ﷺ and complained to him about the many terrifying things he was seeing in [his] dreams so the Prophet ﷺ said: “When you go to bed, say:
أَعُوذُ بِكَلِماتِ اللهِ التامَّةِ مِنْ غَضَبِهِ وَعِقَابِهِ وَمِنْ شَرِّ عِبَادِهِ وَمِنْ هَمَزَاتِ الشَّيَاطِينَ ، وَأَنْ يَحْضُرُونِ
I seek refuge with the perfect words of Allāh from His anger and His punishment; from the evil of His slaves and the prodding of devils; and from their being in my presence [in any situation].
Rated Ḥasan by Al-Albānī, Al-Silsilah Al-Ṣaḥīḥah, 264.
Translated by Mikail ibn Mahboob Ariff