Sayyidina Bara ibn Aazib (RA) reported that Allah’s Messenger (SAW) said, “Shall I not teach you an expression which if you utter when you go to your bed and happen to die that night you will die on nature (that is Islam) and if you come to morning then you will come with goodness?” Say:
“ 0 Allah, I have entrusted my soul to You, turned my face to You and placed my affairs in Your trust out of desire and out of fear for You. And I have put my back in Your protection, for, there is no refuge and no place of safety from You except through You. I believe in Your Book that You have sent down and in Your Prophet who You have commissioned.”
Bara said that he utered, “and in Your Messenger whom You have commissioned,” but the Prophet (SAW) struck his hand on his chest and said, “and in Your Prophet whom You have commissioned.”
[Ahmed 18585, Bukhari 247, Muslim 12710, Abu Dawud 5046, Ibn e Majah 3876]