Sayyiduna Ammar (may Allah be pleased with him) said: "Shall I not teach you words that are far better than those (earlier words)?" It was as if he was attributing them to the Prophet (peace and blessings be upon him), that he (peace and blessings be upon him) said: "When you lie down on your bed at night, say: 'Allahumma inni aslamtu nafsi ilayk, wa wajjahtu wajhi ilayk, wa fawwadtu amri ilayk, amantu bi-kitabika al-munzal wa nabiyyika al-mursal, inna nafsi nafsun khalaqtaha, laka mahyaha wa laka mamatuha, fa-in kafattaha fa-rhamha, wa in akhkhartaha fa-hfazha bi-hifzi al-iman' (O Allah, I have surrendered my soul to You, turned my face towards You and entrusted my affair to You. I believe in Your revealed Book and Your sent Prophet. My soul is a soul that You created; its living is for You and its dying is in Your control too. So if You take it (during sleep), have mercy on it, and if You grant it more respite, protect it with the protection of faith)."
Hadith Referenceمسند أبي يعلى الموصلي / مسند عمار بن ياسر / 1625
Hadith Takhrij«قال سعيد بن محمد السناري: صحيح» «أخرجه محمد بن فضيل في "الدعاء" [رقم 84]، و»