It is narrated from a narrator who was present with Sayyiduna Ammar bin Yasir (may Allah be pleased with him); he relates: I was sitting with him (Sayyiduna Ammar, may Allah be pleased with him) when a man came to him and said: Shall I not teach you some words? And he was attributing those words to the Prophet (peace and blessings be upon him). He said: "When you lie down on your bed at night, recite this supplication: 'Allahumma aslamtu nafsi ilayka, wa wajjahtu wajhi ilayka, wa alja'tu zahri ilayka, amantu bi-kitabika al-munzal wa nabiyyika al-mursal. Allahumma nafsi khalaqtaha, laka mahyaha wa laka mamatuha, in qabadtaha farhamha, wa in akhkhartaha fahfazha bi-hifz al-iman' (O Allah, I have submitted my soul to You, turned my face towards You and entrusted my back to Your protection; I believe in Your revealed Book and Your sent Prophet. O Allah, You created my soul; its living and its dying are in Your control; if You take it, have mercy on it, and if You grant it respite (of life), guard it with the protection of faith)." This chain is hasan (good), and the basis of this report is narrated in the two Sahihs and the four Sunan from the hadith of Sayyiduna al-Bara' bin Azib (may Allah be pleased with him); al-Tirmidhi also transmitted it from the narration of Sayyiduna Rafi' bin Khadij (may Allah be pleased with him) and declared it hasan (good).