Sleep is one of the signs of Allah. The Qur'an calls it rest, and the Prophet ﷺ had a way of going to bed that you can follow tonight, one step at a time. This guide puts every step in order, with the source for each one.
What the Qur'an says about sleep
Allah names sleep among His signs: "And of His signs is your sleep by night and day, and your seeking of His bounty" (Qur'an 30:23). He also calls it a rest: "And We made your sleep a means for rest" (Qur'an 78:9).
The Qur'an also describes sleep as something close to death. "Allah takes the souls at the time of their death, and those that do not die during their sleep" (Qur'an 39:42). That is why the bedtime du'as speak about dying and living, and why the first words on waking thank Allah for bringing us back.
So in Islam, sleep is not wasted time. It is a mercy you receive, a daily reminder of your return to Allah, and with the right intention it can become worship.
Before bed: Isha, wudu and the house
Sleep after Isha, not before it
The Prophet ﷺ disliked sleeping before Isha and talking after it (Sahih al-Bukhari 568). Praying Isha, then winding the night down instead of starting new conversations, is the first step of an Islamic sleep routine.
Close the doors and put out the lights
He told his companions to close their doors at night while mentioning Allah's name, and to put out their lamps (Sahih al-Bukhari 3280). Today that can mean locking up with "Bismillah", turning off the lights and putting screens away.
Make wudu
"When you go to bed, perform wudu as you do for prayer" (Sahih al-Bukhari 247). Going to sleep in a state of purity is one of the clearest sleep sunnahs.
Lying down: the right side and the bed
Dust off the bed
The Prophet ﷺ taught that when you go to bed, you should dust it off first, because you do not know what came onto it after you left it (Sahih al-Bukhari 6320).
Lie on your right side
In the same hadith of wudu, he said: "then lie down on your right side" (Sahih al-Bukhari 247). If health, pregnancy or pain means another position is better for you, take the care your body needs. The sunnah was never meant to harm you.
The bedtime adhkar, in order
These are the authentic adhkar for sleep. You do not need to say all of them every night. Start with one or two and add more as they become a habit.
1. Ayat al-Kursi
Whoever recites Ayat al-Kursi (Qur'an 2:255) when going to bed will have a guardian from Allah through the night, and no devil will come near until morning (Sahih al-Bukhari 2311).
2. The last two verses of Surah al-Baqarah
"Whoever recites the last two verses of Surah al-Baqarah at night, they will be sufficient for him" (Sahih al-Bukhari 5009). These are Qur'an 2:285 to 286.
3. The three Quls, blown into your hands
Every night the Prophet ﷺ would cup his hands, blow into them and recite Surah al-Ikhlas, al-Falaq and an-Nas. Then he wiped his hands over as much of his body as he could, starting with his head, face and the front of his body. He did this three times (Sahih al-Bukhari 5017).
4. Subhanallah, Alhamdulillah, Allahu Akbar
When Fatimah asked for a servant, the Prophet ﷺ taught her and Ali something better: at bedtime, say Subhanallah 33 times, Alhamdulillah 33 times and Allahu Akbar 34 times, which he said was better for them than a servant (Sahih al-Bukhari 3705).
5. Surah as-Sajdah and Surah al-Mulk
The Prophet ﷺ would not sleep until he had recited Surah as-Sajdah and Surah al-Mulk (Jami' at-Tirmidhi 2892). If that is too long for you tonight, listening to them as you lie down is a good start.
6. The du'a for lying down
Bismika Allahumma amutu wa ahya. In Your name, O Allah, I die and I live (Sahih al-Bukhari 6324).
7. The last words before sleep
The Prophet ﷺ taught al-Bara' ibn 'Azib a du'a to make the very last thing he said: Allahumma 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 bi kitabikal-ladhi anzalt, wa bi nabiyyikal-ladhi arsalt.
O Allah, I submit myself to You, I entrust my affairs to You, and I rely on You, in hope and in fear of You. There is no refuge and no escape from You except to You. I believe in Your Book which You revealed, and in Your Prophet whom You sent. He said that whoever dies that night dies upon the fitrah (Sahih al-Bukhari 247).
Entrust the night to Allah, even before sleep arrives.
If you wake in the night
After a bad dream
The Prophet ﷺ taught that a bad dream is from Shaytan. Spit lightly to your left three times, seek refuge in Allah from it, do not tell anyone about it, and turn onto your other side (Sahih Muslim 2262, Sahih al-Bukhari 7044). We go through each step in What to Do After a Bad Dream in Islam.
The last third of the night
Allah descends to the lowest heaven in the last third of every night and says: "Who is calling on Me, that I may answer him? Who is asking of Me, that I may give him? Who is seeking My forgiveness, that I may forgive him?" (Sahih al-Bukhari 1145). If you wake in those hours, it is a good time for two rak'ahs or a few words of du'a, even from your bed.
If you cannot fall back asleep
Lying awake is not a spiritual failure. Keep the lights low, put the phone down, and repeat a short dhikr like La ilaha illallah or Astaghfirullah. Our Islamic bedtime routine for a restless mind has more for nights when worry keeps you up.
Waking up the Islamic way
The first words of the day thank Allah for life: Alhamdulillahil-ladhi ahyana ba'da ma amatana wa ilayhin-nushur. All praise is for Allah, who gave us life after He caused us to die, and to Him is the return (Sahih al-Bukhari 6312).
Then make wudu and pray Fajr. An Islamic sleep routine ends where the day of worship begins.
A simple Islamic sleep checklist
- Pray Isha and wind the night down
- Lock up with Bismillah, lights off, screens away
- Make wudu
- Dust off the bed and lie on your right side
- Recite Ayat al-Kursi and the last two verses of al-Baqarah
- Blow into your hands with the three Quls and wipe over your body, three times
- Subhanallah 33, Alhamdulillah 33, Allahu Akbar 34
- Recite or listen to Surah al-Mulk
- Say Bismika Allahumma amutu wa ahya
- Make the du'a of al-Bara' your last words
Still Heart has Sleep sessions built around these adhkar, such as Entrusting the Night to Allah and When You Can't Sleep, read by Amina or Salim with no music. They are there to sit beside the sunnah, not to replace it.
When sleep needs more than a routine
Ongoing insomnia, loud snoring, waking up gasping or feeling dangerously sleepy in the day can have medical causes. Following the sunnah and seeing a doctor go together. Taking care of the body Allah gave you is part of your deen.
Sources
- Sahih al-Bukhari 568
- Sahih al-Bukhari 3280
- Sahih al-Bukhari 247
- Sahih al-Bukhari 6320
- Sahih al-Bukhari 2311
- Sahih al-Bukhari 5009
- Sahih al-Bukhari 5017
- Sahih al-Bukhari 3705
- Jami' at-Tirmidhi 2892
- Sahih al-Bukhari 6324
- Sahih Muslim 2262
- Sahih al-Bukhari 7044
- Sahih al-Bukhari 1145
- Sahih al-Bukhari 6312
- Qur'an 30:23, 78:9, 39:42, 2:255, 2:285 to 286




