Mishkat al-Masabih
Mishkat al-Masabih 2477
وَعَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: " إِذَا فَزِعَ أَحَدُكُمْ فِي النَّوْمِ فَلْيَقُلْ: أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ غَضَبِهِ وَعِقَابِهِ وَشَرِّ عِبَادِهِ وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونَ فَإِنَّهَا لَنْ تَضُرَّهُ «وَكَانَ عَبْدُ اللَّهِ بْنُ عَمْرٍو يُعَلِّمُهَا مَنْ بَلَغَ مِنْ وَلَدِهِ وَمَنْ لَمْ يَبْلُغْ مِنْهُمْ كَتَبَهَا فِي صَكٍّ ثُمَّ عَلَّقَهَا فِي عُنُقِهِ» . رَوَاهُ أَبُو دَاوُدَ وَالتِّرْمِذِيّ وَهَذَا لَفظه
Unreviewed translation. All hadiths in this collection are available in five languages. Titles and introductions may remain in Arabic.
‘Amr ibn Shu‘ayb reported from his father, from his grandfather, that the Messenger of Allah ﷺ said: “When one of you is frightened in his sleep, let him say, ‘I seek refuge in the perfect words of Allah from His anger and punishment, from the evil of His servants, from the incitements of the devils, and from their presence.’ It will not harm him.” ‘Abd Allah ibn ‘Amr used to teach this to the children of his who were old enough; for those who were not yet old enough, he wrote it on a piece of paper and hung it around their necks. Reported by Abu Dawud and al-Tirmidhi; this is al-Tirmidhi’s wording. The hadith was not studied by al-Albani.