Hadith on Nightmares: Supplication upon being scared by a dream

Abdullah ibn Amr reported: The Messenger of Allah, peace and blessings be upon him, said, “If one of you is frightened by a dream during sleep, let him say: I seek refuge in the perfect words of Allah from His anger, His punishment, and the evil of His servants, from the insinuations of devils and their presence. Verily, they will never harm him.

Source: Sunan al-Tirmidhī 3528

Grade: Hasan (fair) according to Al-Tirmidhi

عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا فَزِعَ أَحَدُكُمْ فِي النَّوْمِ فَلْيَقُلْ أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ غَضَبِهِ وَعِقَابِهِ وَشَرِّ عِبَادِهِ وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونِ فَإِنَّهَا لَنْ تَضُرَّهُ

3528 سنن الترمذي كتاب الدعوات باب منه

3528 المحدث الترمذي خلاصة حكم المحدث حسن غريب في سنن الترمذي