The Prophet ﷺ said, "When a person lies down to sleep, rests his head on his right hand, and then says, 'O Allah, to You I have submitted myself, to You I have entrusted my affair, to You I have committed my back for support, and toward You I have turned my face, in fear of You and in hope of You. There is no refuge from You except in You. I believe in Your Book which You revealed and in Your Prophet whom You sent,' and dies in that state, a house will be built for him in Paradise," or, "a house in Paradise will be prepared for him."
حدثنا علي بن عاصم أخبرنا حصين بن عبد الرحمن عن سعد بن عبيدة
عن النبي ﷺ قال إذا اضطجع الرجل فتوسد يمينه ثم قال اللهم إليك أسلمت نفسي وفوضت أمري إليك وألجأت إليك ظهري ووجهت إليك وجهي رهبة منك ورغبة إليك لا ملجأ ولا منجا منك إلا إليك آمنت بكتابك الذي أنزلت وبنبيك الذي أرسلت ومات على ذلك بني له بيت في الجنة أو بوئ له بيت في الجنة