It is narrated from Sayyiduna al-Walid bin al-Walid (may Allah be pleased with him) that he complained to the Prophet (peace and blessings be upon him) of the whisperings and unease of heart that he felt, and he (peace and blessings be upon him) said: "When you come to your bed, say: 'A'udhu bi-kalimat Allahi al-tammati min ghadabihi wa 'iqabihi wa sharri 'ibadihi, wa min hamazat al-shayatini wa an yahdurun' (I seek refuge in the perfect words of Allah from His anger and His punishment, from the evil of His servants, from the whisperings of the devils, and from their coming to me). By the One in whose hand is my soul, nothing will harm you until the morning, and they will surely not even come near you." In the narration of Ahmad bin Hanbal, Sayyiduna al-Walid bin al-Walid (may Allah be pleased with him) said: "O Messenger of Allah (peace and blessings be upon him), I feel loneliness and fear", and he (peace and blessings be upon him) said: "When you go to your bed" (then the narrator mentioned the same supplication). All the narrators of this hadith are thiqat (trustworthy) and reliable.
It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) asked a man of the Ansar: "What do you say when you intend to sleep?" He said: I say: 'Bismika rabbi wada'tu janbi faghfir li dhanbi' (O my Lord, in Your name I have laid down my side (on the bed), so forgive me my sin). He (peace and blessings be upon him) said: "You have certainly been forgiven." Abu Ya'la al-Mawsili recorded it with these words: when the Messenger of Allah (peace and blessings be upon him) lay down to sleep, he would say: 'Bismika rabbi wada'tu janbi' (O my Lord, in Your name I have laid down my side). Likewise, Ahmad bin Hanbal recorded it in his Musnad, al-Tabarani in Kitab al-Du'a through the route of Ibn Wahb, and al-Nasa'i in his book 'Amal al-Yawm wal-Laylah through Abdullah bin Yazid.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لضعف عبد الرحمن بن زياد الأفريقي
Hadith Takhrij«عبد الرحمن بن زياد بن أنعم الأفريقي: ضعيف في حفظه (من الحفظ)» «(6095/1) أخرجه مصنف ابن أبي شيبة برقم: 12» «(6095/2) أخرجه مسند أحمد برقم: 6583، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 17043، 17045»
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).
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that a woman came to the Prophet (peace and blessings be upon him) and complained to him of her need and want, and he (peace and blessings be upon him) said: "Shall I not guide you to something better than that? At bedtime, declare the oneness of Allah thirty-three times, 'La ilaha illallah' (There is no god worthy of worship except Allah), glorify Allah thirty-three times, 'Subhan Allah' (Glory be to Allah), and praise Allah thirty-four times, 'Al-hamdu lillah' (All praise is for Allah)." He (peace and blessings be upon him) said: "These hundred (words) are better than the world and all that is in it." The narrators of the chain of this report are thiqat (trustworthy).
It is narrated from Sayyiduna Nawfal al-Ashja'i (may Allah be pleased with him) that he came to Madinah and said to the Messenger of Allah (peace and blessings be upon him): "O Messenger of Allah, teach me something that I may recite when I lie down on my bed." He (peace and blessings be upon him) said: "Recite 'Say: O disbelievers', for it is a declaration of freedom from polytheism (shirk)." In the narration in the Sahih of Ibn Hibban, the Messenger of Allah (peace and blessings be upon him) said to him: "Will you take care of a girl, Zaynab, who is being brought up in our household?" Then he came, and the Prophet (peace and blessings be upon him) asked him about her (the girl); he said: "I have left her with her mother." He (peace and blessings be upon him) asked: "Then what is the purpose of your coming?" He said: "I have come so that you may teach me something that I may recite at bedtime." He (peace and blessings be upon him) said: "Recite 'Say: O disbelievers', and go to sleep upon its conclusion, for it is freedom and disavowal from polytheism (shirk)." It is also narrated in the same way from Abu Ishaq through another chain. Abu Dawud, al-Tirmidhi and al-Nasa'i recorded this hadith in abridged form, and al-Hakim recorded it and declared its chain sahih (authentic); it also has a supporting narration (shahid) from the hadith of Sayyiduna Ibn Abbas (may Allah be pleased with them both), which has already been mentioned in the commentary on Surah al-Kafirun.
It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When a man comes to his bed to sleep, an angel and a devil rush towards him. The angel says: 'Conclude (your day) with good', and the devil says: 'Conclude with evil.' Then if he remembers Allah and sleeps, the angel keeps guard over him throughout the night. Then when he wakes up, the angel says: 'Begin (your day) with good', and the devil says: 'Begin with evil.' So if he says: 'Al-hamdu lillahi alladhi radda 'alayya nafsi wa lam yumitha fi manamiha, al-hamdu lillahi alladhi yumsiku al-samawati wal-arda an tazula - to the end of the verse - al-hamdu lillahi alladhi yumsiku al-sama'a an taqa'a 'ala al-ardi illa bi-idhnih' (All praise is for Allah, who returned my soul to me and did not cause it to die in its sleep; all praise is for Allah, who holds the heavens and the earth lest they move away; all praise is for Allah, who holds back the sky from falling upon the earth except by His command), then if he (after saying these words) falls from his bed and dies, he will enter Paradise." Al-Tabarani also mentioned this report in Kitab al-Du'a, and Ibn Hibban also transmitted it in his Sahih, while another route has these words: "When a person comes to his bed, an angel and a devil rush towards him; so if he keeps remembering Allah until his eyes close in sleep, the angel drives the devil away and guards him throughout the night." Al-Hakim added at its end these words: 'Al-hamdu lillahi alladhi yuhyi al-mawta wa huwa 'ala kulli shay'in qadir' (All praise is for Allah, who gives life to the dead, and He has power over all things), and al-Hakim declared it sahih (authentic) on the condition of Muslim. The word 'yakla'uhu' mentioned in the hadith means that he protects him and keeps watch over him.
It is narrated from Sayyidah Aishah (may Allah be pleased with her): "The Messenger of Allah (peace and blessings be upon him) would give instructions about his bed and it would be spread out for him; then he (peace and blessings be upon him) would face the qiblah, and when he came to the bed to rest he would make a pillow of his right palm, then recite something in a low voice which we could not make out; then at the end of the supplication he would raise his voice and say: 'Allahumma rabba al-samawati al-sab'i wa rabba al-'arshi al-'azim, ilaha - or rabba - kulli shay', munzila al-Tawrati wal-Injili wal-Furqan, faliqa al-habbi wal-nawa, a'udhu bika min sharri kulli shay'in anta akhidhun bi-nasiyatih. Allahumma anta al-awwalu fa-laysa qablaka shay', wa anta al-akhiru fa-laysa ba'daka shay', wa anta al-zahiru fa-laysa fawqaka shay', wa anta al-batinu fa-laysa dunaka shay', iqdi 'anna al-dayna wa aghnina min al-faqr' (O Allah, Lord of the seven heavens and Lord of the Mighty Throne, God (or he said: Lord) of all things, Revealer of the Torah, the Gospel and the Qur'an, Splitter (causing to sprout) of the grain and the date-stone, I seek refuge in You from the evil of everything whose forelock You hold. O Allah, You are the First, so there was nothing before You; You are the Last, so there is nothing after You; You are the Manifest, so there is nothing above You; and You are the Hidden, so nothing is hidden from You. Pay off our debt for us and make us free of want, saving us from poverty and hardship)." I say: this hadith also has a supporting narration (shahid) from the narration of Sayyiduna Abu Hurayrah (may Allah be pleased with him), which Muslim and the authors of the Sunan recorded.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف جدًا؛ السري بن إسماعيل متروك، وله شاهد في صحيح مسلم من حديث أبي هريرة
Hadith Takhrij«السري بن إسماعيل الهمداني: متروك الحديث (من الحفظ)» «أخرجه سنن الترمذي برقم: 3400، 3481، وأخرجه سنن أبي داود برقم: 5051، وأخرجه سنن ابن ماجه برقم: 3831، وأخرجه مسند أحمد برقم: 8737، 8994، 10541، وأخرجه فتح الباري برقم: 3020، 5959، 5960، وأخرجه المستدرك على الصحيحين برقم: 2046، 4795، وأخرجه صحيح ابن حبان برقم: 5537، وأخرجه السنن الكبرى للنسائي برقم: 7958، وأخرجه المطالب العالية بزوائد المسانيد الثمانية برقم: 3362»