๐ Al-Baraa’ ibn ‘Aazib RadhiAllahu 'anhu narrated: Allah's noble Messenger Muhammad SallAllahu 'alaihi wa sallam said, "When you go to sleep, perform ablution (wudhoo) as (you do so) for your prayer, then lie down on your right side and say: 'O Allah, I submit my face to You, I entrust my affair to You, and I commit myself to You, in hope and in fear of You. There is no refuge or place of safety but with You. I believe in the Book which You have revealed, and in the Prophet (Muhammad SallAllahu 'alaihi wa sallam) whom You have sent.' Then, the Messenger Muhammad SallAllahu 'alaihi wa sallam said, "Make these your last words. If you died in this night of yours, you will have died upon (the fitrah) pure nature."
Source: Sahih Al-Bukhari 6311, Sahih Muslim 2710
Grade: Muttafaqun Alayhi (Authenticity agreed upon) according to Al-Bukhari and Muslim