Before sleep, the Sunnah is to make wudu, shake out your bedding, lie on your right side, recite Ayat al-Kursi, the last two verses of al-Baqarah and the three Quls (blowing into your hands and wiping over your body), say the tasbih of Fatimah (33 subhan Allah, 33 alhamdu lillah, 34 Allahu akbar), and end with a short du'a such as "bismika Allahumma amutu wa ahya". Each of these is reported with its own strength, and this article says plainly which are firmly established and which scholars handle with care.
This article draws on Daily Adhkar, a free book from Life With Allah. We have section notes on this book, and this article follows the sections on before sleep and on waking, through sections 17 to 20.
Prepare the bed first
The Prophet ﷺ made bedtime a short act of worship, and it begins before you say a word.
- Make wudu. He told al-Bara' ibn 'Azib to make wudu as for prayer when going to bed, then lie on the right side and say the du'a of surrender below, making it the last thing he says (Sahih al-Bukhari 6311; Sahih Muslim 2710). Our guide on how to make wudu walks through it.
- Shake out the bedding. Use the inside of your lower garment, because you do not know what settled on it while you were away (Sahih al-Bukhari 6320; Sahih Muslim 2714).
- Close up the house. Close the doors and mention Allah's name (Sahih al-Bukhari 3304), cover your vessels and put out the lamps (Sahih Muslim 2012).
- Lie on your right side. That is the Prophet's ﷺ instruction in the hadith of al-Bara' above.
Two details that are often mis-cited
The hand under the cheek. Many books credit this to al-Bukhari. It is not in al-Bukhari. It comes from Hafsah, who said he put his right hand under his cheek and then asked Allah to guard him from His punishment (Sunan Abi Dawud 5045). Al-Albani graded it sahih apart from the words "three times", Zubayr 'Ali Za'i judged the chain hasan, Ibn Hajar called it hasan, and Shu'ayb al-Arna'ut graded it sahih li-ghayrihi. At-Tirmidhi 3399 has the same du'a, graded sahih by al-Albani and Shu'ayb al-Arna'ut.
Lying on the stomach. A report from Tikhfah al-Ghifari says the Prophet ﷺ found a man lying this way and said Allah dislikes it (Sunan Abi Dawud 5040; Sunan Ibn Majah 3723). Scholars differ on its chain. Al-Albani weakened it in Abu Dawud but graded it sahih in Ibn Majah, Zubayr 'Ali Za'i graded it sahih, and Shu'ayb al-Arna'ut found one chain weak and another hasan li-ghayrihi. It is a point of adab, not medical advice about how you should sleep.
One more habit: the Prophet ﷺ disliked sleeping before 'Isha and talking after it (Sahih al-Bukhari 568). Scholars allow exceptions such as study, family and guests, so hold it as a gentle preference.
Recite the Qur'an
Ayat al-Kursi
Abu Hurayrah was guarding the zakat of Ramadan when he caught a thief, who told him to recite Ayat al-Kursi (Qur'an 2:255) when going to bed, for a guardian from Allah would stay with him and Shaytan would not come near until morning. The Prophet ﷺ said the man had told the truth, though he was a liar (Sahih al-Bukhari 3275, which gives the story in a form cut off at the start of the chain, as al-Bukhari sometimes does). For its meaning, see Ayat al-Kursi: meaning and virtues.
The last two verses of al-Baqarah
The Prophet ﷺ said that two verses closing Surat al-Baqarah, if read at night, will suffice the reader (Sahih al-Bukhari 5008 and 5009; Sahih Muslim 807). These are Qur'an 2:285 and 2:286. Scholars differ on what "suffice" means: enough protection, enough in place of a night prayer, or both. It is safest to hope for all of these without insisting on one.
The three Quls
'A'ishah reported that each night, when he went to bed, the Prophet ﷺ cupped his hands, blew into them after reciting al-Ikhlas, al-Falaq and an-Nas, and wiped as much of his body as he could, beginning with his head and face. He did this three times (Sahih al-Bukhari 5017; also Sunan Abi Dawud 5056, graded sahih by al-Albani). The surahs are Qur'an 112, 113 and 114.
Al-Kafirun and al-Mulk, held with care
- Al-Kafirun (109). The Prophet ﷺ told Nawfal to recite it and then sleep, as it is a declaration of freedom from shirk (Sunan Abi Dawud 5055). Al-Albani graded it sahih, Zubayr 'Ali Za'i and Shu'ayb al-Arna'ut hasan (the latter noting some idtirab in the chain), while Ibn 'Abd al-Barr said the chain is mudtarib (shaky). Many scholars accept it as a gentle practice.
- Al-Mulk (67). Two reports are blended here. That a surah of thirty verses intercedes for its reader until he is forgiven is hasan (Jami' at-Tirmidhi 2891, per al-Albani and Zubayr 'Ali Za'i). That the Prophet ﷺ would not sleep until he recited al-Mulk and as-Sajdah is a separate report (Jami' at-Tirmidhi 3404). Al-Albani graded it sahih, but Zubayr 'Ali Za'i, Ibn Baz and Ibn Hajar criticised the chain and al-Munawi noted idtirab. Keep the two apart, and recite al-Mulk as a good habit, not as a firm promise.
Say the tasbih of Fatimah
Fatimah went to her father to ask for a servant, as the grinding stone had hurt her hands. He taught her and 'Ali something he called better for them than a servant: when you go to your beds, say Allahu akbar 34 times, subhan Allah 33 times and alhamdu lillah 33 times (Sahih al-Bukhari 3113; Sahih Muslim 2727). The narration gives the extra count to takbir, so the numbers are 33, 33 and 34 in total. The same count is also said after the obligatory prayers, in a separate report.
The du'as as you lie down
Say these quietly on your right side. We give the meaning in our own words; for the Arabic, use our before-sleep page in the Morning and Evening Adhkar app, our bedtime dhikr guide or a teacher.
- "Bismika Allahumma amutu wa ahya." With Your name alone, O Allah, I die and I live. This is the shortest one (Sahih al-Bukhari 6312, from Hudhayfah). Sleep is a small death, and the du'a treats it that way.
- The du'a of lying down. With Your name, my Lord, I set my side down, and with Your help I raise it. If You keep my soul, have mercy on it, and if You release it, protect it as You protect Your righteous servants (Sahih al-Bukhari 6320; Sahih Muslim 2714).
- The du'a of surrender. I submit myself to You, hand my affairs to You, turn my face to You and rest my back on You, hoping and fearing. There is no refuge from You except in You. I have faith in the Book You sent and the Prophet You sent. The Prophet ﷺ said that if you die that night you die on the fitrah (Sahih al-Bukhari 6311; Sahih Muslim 2710). Note that al-Bara' once said "Your messenger" and was corrected to "Your prophet", so keep to the taught wording.
- Protection from the punishment. My Lord, keep Your punishment away from me when You bring Your servants back to life (Jami' at-Tirmidhi 3399; al-Albani graded it sahih and Zubayr 'Ali Za'i judged the chain sahih).
The book also gives a few longer bedtime du'as whose chains are weaker, such as one praising Allah with "all of creation's praises" in al-Hakim, which an-Nawawi called da'if. Prefer the versions in al-Bukhari and Muslim above.
After a bad dream
The Prophet ﷺ separated the two kinds of dream. A good dream comes from Allah, while a bad one comes from Shaytan (Sahih al-Bukhari 6984). For one you dislike, he told us to ask Allah's refuge from its harm and from Shaytan, spit lightly three times to the left, and mention it to no one, and then it will not harm you (Sahih al-Bukhari 7044; see also 6985 and Sahih Muslim 2261). A good dream, by contrast, can be shared with someone you love. The "spit" is understood as a light, dry blowing with a little breath; how it is done is for your teacher.
For a fright in sleep specifically, 'Amr ibn Shu'ayb reported that the Prophet ﷺ taught seeking refuge in Allah's perfect words from His anger, His punishment, the harm of His servants and the promptings of the devils (Jami' at-Tirmidhi 3528). Al-Albani graded the du'a hasan, though not the added remark about 'Abdullah ibn 'Amr hanging it on his young children, while Zubayr 'Ali Za'i judged the chain weak. Some printed lists carry a different version tied to Khalid ibn al-Walid, which al-Albani graded very weak or fabricated, so check which wording you are reading. The sound core in al-Bukhari, seeking refuge with Allah, always stands. See our page on nightmares.
If you wake in the night
Whoever wakes at night and declares la ilaha illallah alone without partner, with the kingdom and praise His, adds tasbih, tahmid, takbir and la hawla wa la quwwata illa billah, then asks forgiveness or makes any du'a, will be answered. If he then makes wudu and prays, that prayer is accepted (Sahih al-Bukhari 1154).
The Prophet ﷺ also woke, rubbed sleep from his face, recited the last ten verses of Surat Al 'Imran (3:190 to 200), made wudu and prayed (Sahih al-Bukhari 183; Sahih Muslim 763).
When you wake in the morning
Hudhayfah reported that on waking the Prophet ﷺ would thank Allah for giving us life after our small death, and add that to Him is the return (Sahih al-Bukhari 6312).
Another report has him teach thanks to Allah for health in the body, for the soul returned, and for permission to remember Him (Jami' at-Tirmidhi 3401). Al-Albani graded it hasan, while Zubayr 'Ali Za'i weakened it because Ibn 'Ajlan's hearing is not clearly stated. It is a lovely thing to say, and the version in al-Bukhari is the firmest. Our waking-up page in the same app has the wording, and the morning and evening adhkar are the natural next step.
A simple routine for tonight
You do not need all of it at once. Start with wudu, Ayat al-Kursi and the tasbih of Fatimah, and add the last two verses of al-Baqarah and the three Quls when they are easy. Let the du'a of lying down be the last thing you say.