Mishkat al-Masabih
Mishkat al-Masabih 2408
وَعَنْ أَبِي هُرَيْرَةَ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنَّهُ كَانَ يَقُولُ إِذَا أَوَى إِلَى فِرَاشِهِ: «اللَّهُمَّ رَبَّ السَّمَاوَاتِ وَرَبَّ الْأَرْضِ وَرَبَّ كُلِّ شَيْءٍ فَالِقَ الْحَبِّ وَالنَّوَى مُنْزِلَ التوراةِ والإِنجيل والقرآنِ أعوذُ بِكَ مِنْ شَرِّ كُلِّ ذِي شَرٍّ أَنْتَ آخِذٌ بِنَاصِيَتِهِ أَنْتَ الْأَوَّلُ فَلَيْسَ قَبْلَكَ شَيْءٌ وَأَنْتَ الْآخِرُ فَلَيْسَ بَعْدَكَ شَيْءٌ وَأَنْتَ الظَّاهِرُ فَلَيْسَ فَوْقَكَ شَيْءٌ وَأَنْتَ الْبَاطِنُ فَلَيْسَ دُونَكَ شَيْءٌ اقْضِ عَنِّي الدَّيْنَ وَاغْنِنِي مِنَ الْفَقْرِ» . رَوَاهُ أَبُو دَاوُدَ وَالتِّرْمِذِيُّ وَابْنُ مَاجَهْ وَرَوَاهُ مُسلم مَعَ اخْتِلَاف يسير
Abu Hurayrah reported that when the Prophet ﷺ went to bed, he would say: “O Allah, Lord of the heavens, Lord of the earth, and Lord of all things, Splitter of the seed and the date-stone, Sender down of the Torah, the Gospel, and the Qur’an, I seek refuge in You from the evil of every possessor of evil whose forelock You hold. You are the First, and nothing was before You; You are the Last, and nothing is after You; You are the Manifest, and nothing is above You; You are the Hidden, and nothing is nearer than You. Settle my debt and free me from poverty.” Reported by Abu Dawud, al-Tirmidhi, and Ibn Majah; Muslim also reported it with a slight difference. Graded Sahih by al-Albani.