Mishkat al-Masabih 2411
وَعَنْ بُرَيْدَةَ قَالَ: شَكَا خَالِدُ بْنُ الْوَلِيدِ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ يَا رَسُول الله مَا أَنَام من اللَّيْلَ مِنَ الْأَرَقِ فَقَالَ نَبِيُّ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: إِذَا أَوَيْتَ إِلَى فِرَاشِكَ فَقُلْ: اللَّهُمَّ رَبَّ السَّمَاوَاتِ السَّبْعِ وَمَا أَظَلَّتْ وَرَبَّ الْأَرَضِينَ وَمَا أَقَلَّتْ وَرَبَّ الشَّيَاطِينِ وَمَا أَضَلَّتْ كُنْ لِي جَارًا مِنْ شَرِّ خَلْقِكَ كُلِّهِمْ جَمِيعًا أَنْ يَفْرُطَ عَلَيَّ أَحَدٌ مِنْهُمْ أَوْ أَنْ يَبْغِيَ عَزَّ جَارُكَ وَجَلَّ ثَنَاؤُكَ وَلَا إِلَهَ غَيْرُكَ لَا إِلَهَ إِلَّا أَنْتَ . رَوَاهُ التِّرْمِذِيُّ وَقَالَ هَذَا حَدِيثٌ لَيْسَ إِسْنَادُهُ بِالْقَوِيّ والحكَمُ بن ظُهيرٍ الرَّاوِي قد ترَكَ حديثَهُ بعضُ أهل الحَدِيث
From Buraydah, who said: Khalid ibn al-Walid complained to the Prophet ﷺ, saying: "O Messenger of Allah, I cannot sleep at night because of sleeplessness." The Prophet of Allah ﷺ said: "When you go to your bed, say: O Allah, Lord of the seven heavens and what they shade, Lord of the earths and what they carry, and Lord of the devils and whom they lead astray, be a protector for me from the evil of all Your creation, all of them together, lest any of them act hastily against me or transgress. Mighty is the one You protect and majestic is Your praise; there is no god besides You, there is no god but You." Reported by at-Tirmidhi, and he said: This is a hadith whose chain is not strong, and al-Hakam ibn Zuhayr, the narrator, some of the people of hadith abandoned his hadith.