Ash-Shama'il Al-Muhammadiyah, Book 38, Hadith 246 (English) ⓘ
Anas bin Maalik Radiyallahu'Anhu says: "When Rasulullah Sallallahu 'Alayhi Wasallam went to bed, he recited this du'aa:Alhamdulillaahil ladhi at'a-manaa wa-saqaanaa wa-kafaanaa wa-aa-waa-naa-fa-kam mim-mal laa kaafiya lahu wa-laa mu-wiya.Translation...'Praise be to Allah Who gave us food and drink, provided us sufficiently, and gave us (a place for) shelter! How many there are who have neither a provider nor a shelterer!'
حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، قَالَ: حَدَّثَنَا عَفَّانُ، قَالَ: حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ ثَابِتٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ رَسُولَ اللهِ صلى الله عليه وسلم، كَانَ إِذَا أَوَى إِلَى فِرَاشِهِ، قَالَ: الْحَمْدُ لِلَّهِ الَّذِي أَطْعَمَنَا وَسَقَانَا وَكَفَانَا وَآوَانَا، فَكَمْ مِمَّنْ لا كَافِيَ لَهُ وَلا مُؤْوِي.
also referenced under: Book 39, Hadith 259 (In-Book)