عَنِ ابْنِ عُمَرَ أَيْضًا أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ كَانَ يَقُولُ إِذَا تَبَوَّأَ مَضْجَعَهُ الْحَمْدُ لِلَّهِ الَّذِي كَفَانِي وَآوَانِي وَأَطْعَمَنِي وَسَقَانِي وَالَّذِي مَنَّ عَلَيَّ وَأَفْضَلَ وَالَّذِي أَعْطَانِي فَأَجْزَلَ الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ اللَّهُمَّ رَبَّ كُلِّ شَيْءٍ وَمَلِيكَ كُلِّ شَيْءٍ وَإِلَهَ كُلِّ شَيْءٍ وَلَكَ كُلُّ شَيْءٍ أَعُوذُ بِكَ مِنَ النَّارِ
It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that when the Messenger of Allah (peace and blessings be upon him) would come to his bed, he would recite this supplication: All praise is due to Allah who sufficed me and sheltered me... I seek refuge in You from the Fire. (All praise is for Allah who sufficed me, gave me shelter, fed me, gave me drink, who bestowed favors upon me, showed me kindness, granted me and gave abundantly; in every condition, all praise is for Allah. O Allah! You are the Lord of everything, the King of everything, and the God of everything; everything is for You. I seek Your protection from the Hellfire.)