When the Messenger of Allah ﷺ went to his bed, he would say: Praise be to Allah Who has given me sufficiency, has guarded me, given me food and drink, been most gracious to me, and given to me most lavishly. Praise be to Allah in every circumstance. O Allah! Lord and King of everything, God of everything, I seek refuge in Thee from Hell. (Using translation from Abū Dāʾūd 5058)
أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا أَخَذَ مَضْجَعَهُ قَالَ «الْحَمْدُ لِلَّهِ الَّذِي كَفَانِي وَآوَانِي وَأَطْعَمَنِي وَسَقَانِي وَالَّذِي مَنَّ عَلَيَّ فَأَفْضَلَ وَالَّذِي أَعْطَانِي فَأَجْزَلَ الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ اللهُمَّ رَبَّ كُلِّ شَيْءٍ وَمَلِيكَ كُلِّ شَيْءٍ وَلَكَ كُلُّ شَيْءٍ أَعُوذُ بِكَ مِنَ النَّارِ»