Bara bin Azib reported,

The Messenger of Allah ﷺ instructed a man from the Ansar to say when he lay down to sleep, "O Allah, I have submitted myself to You, turned my face toward You, entrusted my affair to You, and placed my back against You, in hope and fear of You. There is no refuge or escape from You except to You. I believe in Your Book which You revealed and in Your Prophet whom You sent." For if he dies, he dies upon the natural state of faith.

Ahmad 18515

Sahih

حدثنا عفان حدثنا شعبة عن أبي إسحاق قال سمعت

البراء بن عازب

أن رسول الله ﷺ أمر رجلا من الأنصار أن يقول إذا أخذ مضجعه اللهم أسلمت نفسي إليك ووجهت وجهي إليك وفوضت أمري إليك وألجأت ظهري إليك رغبة ورهبة إليك لا ملجأ ولا منجا منك إلا إليك آمنت بكتابك الذي أنزلت ونبيك الذي أرسلت فإن مات مات على الفطرة

أحمد 18515صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Bara bin Azib
Numbering
Darussalam 18515
Ahmad 18515