Anas reported that whenever the Messenger of Allah ﷺ settled into his bed, he would say, "Praise be to Allah who has fed us, given us drink, sufficed us, and provided us with shelter. How many there are who have no one to suffice them and no one to shelter them."
أن رسول الله ﷺ كان إذا أوى إلى فراشه قال: الحمد لله الذي أطعمنا وسقانا وكفانا وآوانا فكم ممن لا كافي له ولا مؤوي.
Muslim narrated it in the Book of Remembrance and Supplication (2715) from Abu Bakr bin Abu Shayba, who said, Yazid bin Harun told us, from Hammad bin Salama, from Thabit, from Anas, who mentioned it.