Sahih al-Bukhari 6313
Sa'id bin Rabi' and Muhammad bin Ar'arah narrated to us. Both of them said: Shu'bah told us. He narrated from Abu Ishaq. (Abu Ishaq said:) I heard Hazrat Bara' bin Azib (ra) say that the Prophet (saw) commanded a man. And also Adam narrated to us that Shu'bah told us. Abu Ishaq Hamdani narrated to us. He narrated from Hazrat Bara' bin Azib (ra) that the Prophet (saw) gave (this) instruction to a man. He (saw) said: “When you go to your bed, pray thus: O Allah! I have surrendered myself to You and entrusted my affair to You, and I have turned my face to You alone, and, fearing Your displeasure and hoping for Your pleasure, I have made You alone my support. There is no refuge and no place of safety from You except with You. I have believed in Your Book which You revealed and in Your Prophet whom You sent. Then, if you die, you will die upon the natural disposition (Fitrah).”
AI-translated by Islam-Today