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)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يَقُولُ إِذَا تَبَوَّأَ مَضْجَعَهُ الْحَمْدُ لِلَّهِ الَّذِي كَفَانِي وَآوَانِي وَأَطْعَمَنِي وَسَقَانِي وَالَّذِي مَنَّ عَلَيَّ وَأَفْضَلَ وَالَّذِي أَعْطَانِي فَأَجْزَلَ الْحَمْدُ لِلَّهِ عَلَىكُلِّ حَالٍ اللهُمَّ رَبَّ كُلِّ شَيْءٍ وَمَلِكَ كُلِّ شَيْءٍ وَإِلَهَ كُلِّ شَيْءٍ وَلَكَ كُلُّ شَيْءٍ أَعُوذُ بِكَ مِنَ النَّارِ