It is narrated from Sayyiduna al-Bara' bin Azib (may Allah be pleased with him) that when the Prophet (peace and blessings be upon him) went to his bed, he would recite this supplication: 'Allahumma inni aslamtu nafsi ilayk, wa fawwadtu amri ilayk, wa alja'tu zahri ilayk, raghbatan wa rahbatan ilayk, la malja'a wa la manja minka illa ilayk, amantu bima anzalta min kitab, wa bima arsalta min rasul' (O Allah, I have surrendered my soul to You, entrusted my affair to You and made my back rest upon Your support, in hope of Your mercy and in fear of Your punishment. There is no refuge and no place of safety from You except with You. I believe in the Book that You have revealed and in the Messenger whom You have sent).
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Thabit al-Bunani (may Allah have mercy on him) except Hammad bin Salamah (may Allah have mercy on him), and Mu'ammal bin Isma'il (may Allah have mercy on him) is alone in narrating it."
Hadith Referenceالمعجم الأوسط / باب الميم / 6051
Hadith Takhrij«أخرجه البخاري فى «صحيحه» برقم: 247، 6311، 6313، 6315، 7488، ومسلم فى «صحيحه» برقم: 2710، 2711، وابن خزيمة فى «صحيحه» برقم: 216، وابن حبان فى «صحيحه» برقم: 5522، 5523، 5527، 5536، 5542، والنسائي فى «السنن الكبرى» برقم: 10519، 10520، 10521، 10522، 10525، 10526، 10523، 10527، 10528، 10541، 10540، 10542، 10543، 10544، 10547، 10546، 10545، 10548، 10549، 10553، 10550، 10552، 10551، 10554، 10555، وأبو داود فى «سننه» برقم: 5046، (4/471) [دون رقم في الترقيم المختار]، والترمذي فى «جامعه» برقم: 3394، 3399، 3574، والدارمي فى «مسنده» برقم: 2725، وابن ماجه فى «سننه» برقم: 3876، وأحمد فى «مسنده» برقم: 18764، 18809، 18850، 18858، 18886، 18887، 18902، 18916، 18930، 18950، 18953، 18954، 18955، 18971، 18959، 18980، 18986، 18996، والطيالسي فى «مسنده» برقم: 743، 744، 780، والحميدي فى «مسنده» برقم: 740، وأبو يعلى فى «مسنده» برقم: 1668، 1683، 1711، 1721، وعبد الرزاق فى «مصنفه» برقم: 19829، وابن أبي شيبة فى «مصنفه» برقم: 27051، 27055، 27057، 27063، 27068، 29906، 29907، 29908، 29913، 29923، والطحاوي فى «شرح مشكل الآثار» برقم: 1137، 1136، 1139، 1138، 1140، والترمذي فى «الشمائل» برقم: 254، والطبراني فى «الصغير» برقم: 3، والطبراني فى «الأوسط» برقم: 52، 1248، 1494، 1636، 2827، 3429»