Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai-kubra:10534ʿImrān b. Bakkār > Aḥmad b. Khālid > Ibn Isḥāq > ʿAmr b. Shuʿayb from his father from his grandfather

[Machine] Khalid ibn al-Walid ibn al-Mughirah was a man who would experience fear in his sleep. He mentioned this to the Messenger of Allah ﷺ , and the Prophet ﷺ said to him, "When you lie down to sleep, say, 'In the name of Allah, I seek refuge in the perfect words of Allah from His anger, punishment, the evil of His slaves, and from the whispers of the devils and that they come close.'" So he said it, and that fear went away from him.  

الكبرى للنسائي:١٠٥٣٤أَخْبَرَنِي عِمْرَانُ بْنُ بَكَّارٍ قَالَ حَدَّثَنَا أَحْمَدُ بْنُ خَالِدٍ قَالَ حَدَّثَنَا ابْنُ إِسْحَاقَ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

كَانَ خَالِدُ بْنُ الْوَلِيدِ بْنِ الْمُغِيرَةِ رَجُلًا يَفْزَعُ فِي مَنَامِهِ فَذَكَرَ ذَلِكَ لِرَسُولِ اللهِ ﷺ فَقَالَ لَهُ النَّبِيُّ ﷺ إِذَا اضْطَجَعْتَ فَقُلْ بِاسْمِ اللهِ أَعُوذُ بِكَلِمَاتِ اللهِ التَّامَّةِ مِنْ غَضَبِهِ وَعِقَابِهِ وَشَرِّ عِبَادِهِ وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونِ فَقَالَهَا فَذَهَبَ ذَلِكَ عَنْهُ  


See similar narrations below:

Collected by Mālik, Suyūṭī
malik:51-9Mālik > Yaḥyá b. Saʿīd > Balaghanī > Khālid b. al-Walīd

Yahya related to me from Malik that Yahya ibn Said said that he had heard that Khalid ibn al-Walid said to the Messenger of Allah ﷺ "I have nightmares." The Messenger of Allah ﷺ said to him, "Say, 'I seek refuge with the complete words of Allah from His anger and His punishment and the evil of His slaves, and from the evil suggestions of the shayatin and from their being present (at death).' " Audhu bi kalimati' llahi't-tammati min ghadabihi wa iqabihi wa sharri ibadihi wa min hamazati' sh-shayatin wa an yahdurun.  

مالك:٥١-٩حَدَّثَنِي عَنْ مَالِكٍ عَنْ يَحْيَى بْنِ سَعِيدٍ قَالَ بَلَغَنِي أَنَّ خَالِدَ بْنَ الْوَلِيدِ

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

suyuti:1294a
Request/Fix translation

  

السيوطي:١٢٩٤a

"إِذَا اضطجعت فقلْ: بسم الله، أعوذُ بكلمةِ اللهِ التَّامَّةِ منْ غَضَبِه وعِقَابه ومنْ شرِّ عبادِه ومِنْ همزاتِ الشياطينِ وأنْ يحضرون" .  

أبو نصر السجزى في الإبانة عن عمرو بن شعيب عن أبيه عن جده