(17) باب مَا يَقُولُ عِنْدَ النَّوْمِ وَأَخْذِ الْمَضْجَعِ
Anas reported Allah's Messenger (ﷺ) as saying:
When you go to bed, say:" Praise is due to Allah Who fed us, provided us drink, sufficed us and provided us with shelter, for many a people there is none to suffice and none to provide shelter."
Reference: Sahih Muslim 2715
In-book reference: Book 48, Hadith 87
USC-MSA web (English) reference(deprecated numbering scheme): Book 35, Hadith 6556