Al-Adab Al-Mufrad, Book 50, Hadith 1206 (English)

Anas said, "When the Prophet, may Allah bless him and grant him peace, went to bed, he said, 'Praise be to Allah who has given us food and drink, and given us enough and given us refuge. How many people have neither enough nor refuge!'"

حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، قَالَ‏:‏ حَدَّثَنَا حَمَّادٌ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ قَالَ‏:‏ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا أَوَى إِلَى فِرَاشِهِ قَالَ‏:‏ الْحَمْدُ لِلَّهِ الَّذِي أَطْعَمَنَا وَسَقَانَا، وَكَفَانَا وَآوَانَا، كَمْ مَنْ لا كَافٍّ لَهُ وَلا مُؤْوِيَ‏.‏

sunnah.com