- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • DeenUp
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

Quick answer
What is the Islamic dua for good sleep?
The primary Islamic dua for sleep is Allahumma aslamtu nafsi ilayka wa wajjahtu wajhi ilayka — O Allah, I submit myself to You and turn my face toward You. Recorded in Sahih al-Bukhari (247), this supplication places the soul in Allah's care before sleep — which the Quran describes as a minor death and a daily act of trust in Allah.

Most Muslims know to say Bismika Allahumma before sleeping. But the Prophet ﷺ left us a far richer nighttime practice — one that doesn't just begin sleep but transforms the entire night into an act of worship and protection.
Many Muslims experience restless nights, vivid bad dreams, or difficulty falling asleep and wonder whether Islam has specific guidance for these struggles. It does. The Sunnah addresses sleep quality, nightmare protection, and restful waking with precision — through specific duas, physical postures, and remembrances rooted in authentic hadith.
What Is the Islamic Dua for Good Sleep?
The primary Islamic dua for good sleep is a supplication that places the soul entirely in Allah's care. The Prophet ﷺ said: "When you go to your bed, perform wudu as for prayer, then lie on your right side and say: Allahumma aslamtu nafsi ilayka — O Allah, I submit myself to You. If you die that night, you die upon the fitrah (natural state of faith)" (Sahih al-Bukhari 247). This dua frames sleep not as unconsciousness but as a daily act of surrender to Allah — and the good sleep that follows is a form of His mercy.
The Complete Prophetic Bedtime Dua
The full version of the bedtime supplication:
اللَّهُمَّ أَسْلَمْتُ نَفْسِي إِلَيْكَ وَوَجَّهْتُ وَجْهِي إِلَيْكَ وَفَوَّضْتُ أَمْرِي إِلَيْكَ وَأَلْجَأْتُ ظَهْرِي إِلَيْكَ رَغْبَةً وَرَهْبَةً إِلَيْكَ لَا مَلْجَأَ وَلَا مَنْجَا مِنْكَ إِلَّا إِلَيْكَ اللَّهُمَّ آمَنْتُ بِكِتَابِكَ الَّذِي أَنْزَلْتَ وَبِنَبِيِّكَ الَّذِي أَرْسَلْتَ
Allahumma aslamtu nafsi ilayka wa wajjahtu wajhi ilayka wa fawwadtu amri ilayka wa alja'tu zahri ilayka raghbatan wa rahbatan ilayka la malja'a wa la manja minka illa ilayk. Allahumma amantu bikitabikal-ladhi anzalta wa nabiyyikal-ladhi arsalt
"O Allah, I submit myself to You, turn my face toward You, entrust my affairs to You, and place my back against You, in hope and fear of You. There is no refuge from You except with You. O Allah, I believe in Your Book which You revealed and in Your Prophet whom You sent." — (Sahih al-Bukhari 247, Muslim 2710)
The Prophet ﷺ instructed that these should be the last words before sleep. He said if you die that night, you will have died upon the fitrah.
Islamic Practices for Good Sleep
| Practice | What to Do | Reference |
|---|---|---|
| Wudu before sleep | Perform ablution as for prayer | Sahih al-Bukhari 247 |
| Sleep on right side | Right hand under right cheek, face qibla | Sahih al-Bukhari 247 |
| Recite Ayat al-Kursi | Once before lying down | Sahih al-Bukhari 5010 |
| Three Quls (blow into hands) | Surahs 112, 113, 114 — three times each | Abu Dawud 5082 |
| Tasbih of Fatimah | SubhanAllah 33x, Alhamdulillah 33x, Allahu Akbar 34x | Sahih al-Bukhari 3113 |
| Avoid sleeping on stomach | Discouraged position | Abu Dawud 5040 |
The Dua That Protects from Nightmares
Nightmares (hulm) are from the shaytan. The Prophet ﷺ taught specific responses:
If you want to prevent bad dreams before sleeping, recite the three Quls — Surah Al-Ikhlas, Al-Falaq, and An-Nas — while blowing lightly into your cupped hands after each recitation, then wipe over your entire body. The Prophet ﷺ said they are "sufficient for you in everything" (Abu Dawud 5082) and did this himself every night.
For a nightmare that wakes you up, the Prophet ﷺ gave four instructions (Sahih Muslim 2261):
- Spit lightly (nafth) to the left three times
- Recite: A'udhu billahi min ash-shaytanir-rajim (seek refuge in Allah from the shaytan)
- Turn onto the other side
- Do not tell anyone about the nightmare
These steps sever the shaytan's influence over the dream and prevent it from disturbing your waking state.
Do you feel your duas are unanswered?
Have you read the dua properly? Learn authentic duas, understand their meanings, and call upon Allah with greater confidence through DeenUp.
Take the Dua Quiz
The Power of Ayat al-Kursi Before Sleep
Ayat al-Kursi (Quran 2:255) is the most protective single verse in the Quran. About sleeping with it, the Prophet ﷺ said:
"Whoever recites Ayat al-Kursi before sleeping — Allah appoints a guardian over them and no shaytan will approach them until morning." (Sahih al-Bukhari 5010)
This is narrated through a compelling story: Abu Hurayrah RA caught a thief stealing from the zakat funds. The thief, revealed to be shaytan in human form, taught him this verse to save himself. The Prophet ﷺ confirmed it was the truth despite the source — showing how important this verse is.
Reciting Ayat al-Kursi takes under thirty seconds. The spiritual protection it offers for the entire night is immense.
What Happens During Sleep, Islamically
The Quran describes sleep as tawaffa — a minor taking of the soul: "It is Allah who takes the souls at the time of their death, and those that do not die during their sleep" (Surah Az-Zumar, 39:42). Every night, Allah takes souls during sleep and returns them except for those whose death He has decreed.
This is why the Prophet ﷺ treated the bedtime dua as a serious act of faith — you are literally commending your soul to Allah for the night. Good sleep, in the Islamic worldview, comes from being at peace with Allah and having made sincere repentance before lying down.
The dua before sleeping and Islamic etiquette of sleeping articles cover the core routine in detail. For those who struggle with sleep and want the complete prophetic approach, blessed sleep in Islam explores the spiritual dimension further.
Building the Habit
Most Muslims skip the complete bedtime dua not because they don't want to recite it, but because they fall asleep before remembering. A few practical adjustments help:
- Set an evening dua reminder 15 minutes before you plan to sleep, not after you're already in bed
- Keep a short card on your nightstand with Ayat al-Kursi and the three Quls written out
- Pair wudu with the intention — after your final ablution of the day, commit to reciting your bedtime duas before your phone
- Start with two — just Ayat al-Kursi and the bedtime dua — and add more as they become habitual
For deepening your morning practice after a restful night, the morning dua guide and morning adhkar routine show how the prophetic day begins with the same quality of conscious remembrance.
For scholarly guidance on the rulings around sleep in Islam, SeekersGuidance covers Islamic etiquette of sleep comprehensively. The authenticated hadith texts on sleep and nightmares can be read at Sunnah.com's Sahih Muslim collection. The Quran.com rendering of Ayat al-Kursi includes audio recitation alongside translations. For additional sleep dua guidance, Deenback covers prophetic practices for better sleep and Demi Manifest explores the Islamic perspective on restful nights.
Do you feel your duas are unanswered?
Have you read the dua properly? Learn authentic duas, understand their meanings, and call upon Allah with greater confidence through DeenUp.
Take the Dua Quiz
Frequently Asked Questions
What is the Islamic dua for good sleep?
The primary Islamic dua for sleep is Allahumma aslamtu nafsi ilayka wa wajjahtu wajhi ilayka — O Allah, I submit myself to You and turn my face toward You. Recorded in Sahih al-Bukhari (247), this supplication places the soul in Allah's care before sleep — which the Quran describes as a minor death and a daily act of trust in Allah.
What dua protects from bad dreams in Islam?
The Prophet taught reciting the three Quls — Surah Al-Ikhlas, Al-Falaq, and An-Nas — while blowing into cupped hands and wiping over the body before sleep. He said: they are sufficient for you in everything (Abu Dawud 5082). For nightmares specifically, reciting A-udhu bikalimatillahit-tammat min ghadabihi wa iqabihi, then spitting lightly to the left three times, repels the disturbance (Muslim 2261).
What should a Muslim do when they have a nightmare?
The Prophet gave four instructions for nightmares: spit lightly to the left three times, seek refuge with Allah from the shaytan and the evil of the dream, turn onto the other side, and do not tell anyone what you saw. Following these steps prevents the nightmare from having effect and breaks its psychological grip (Sahih Muslim 2261).
Which Surah should be read before sleeping for protection?
Ayat al-Kursi (Quran 2:255) is the most powerful single verse for protection during sleep. The Prophet said: whoever recites it before sleeping, Allah appoints a guardian over them until morning, and no shaytan approaches them (Sahih al-Bukhari 5010). The three Quls (Surahs 112, 113, 114) complement it by addressing specific categories of harm.
What is the Sunnah sleeping position?
The Sunnah is to sleep on the right side with the right hand placed under the right cheek, facing the qibla direction. The Prophet would recite specific supplications, then settle onto his right side (Sahih al-Bukhari 247). Sleeping on the stomach is discouraged; the Prophet called it the sleeping position of the people of hellfire (Abu Dawud 5040), though scholars note this is disliked, not forbidden.
Is there a dua for falling asleep when you cannot sleep?
Yes. For difficulty sleeping, scholars recommend increasing Tasbih of Fatimah — SubhanAllah 33 times, Alhamdulillah 33 times, Allahu Akbar 34 times. The Prophet taught this to Fatimah when she struggled with exhaustion, saying it is better for you than a servant (Sahih al-Bukhari 3113). The rhythmic dhikr calms the mind and body, making sleep easier.
Should I make wudu before sleeping for better sleep?
The Prophet recommended performing wudu before sleep, saying: when you go to your bed, perform ablution as for prayer (Sahih al-Bukhari 247). Scholars explain that sleeping in a state of ritual purity keeps the soul closer to its spiritual state and makes the night hours more restful and spiritually protected. It is a Sunnah, not an obligation.