Skip to content

Guides · Du’as

Duas Before Sleeping and After Waking Up: Words, Meanings and Sources

Duas before sleeping and after waking up from authentic hadith: the wudu and right-side dua, Bismika Allahumma, bedtime Quran, tasbih and bad dream advice.

14 min read11 sections

What did the Prophet do before going to sleep?

Authentic reports describe a simple routine: making wudu, shaking out the bed, lying on the right side with the hand under the cheek, then reciting short passages of the Quran and brief supplications. You do not need to adopt everything at once; open each source in the table and add one practice at a time.

Each report stands on its own, and the Arabic of every supplication is on the linked Sunnah.com page beside the English translation. Al-Bukhari placed the wudu report under a chapter on the superiority of sleeping in a state of ablution.

Practice What the report describes Source
Wudu and the right side Wudu as for prayer, then a supplication of trust as your last words Sahih al-Bukhari 247
Shaking out the bed Dusting the bed with the edge of the lower garment, then a short supplication Sahih al-Bukhari 6320
Hand under the cheek Saying Allahumma bismika amutu wa ahya Sahih al-Bukhari 6314
Quran before sleep Ayat al-Kursi, the three Quls and the last two verses of Al-Baqarah Sahih al-Bukhari 2311, 5017 and 5009
Bedtime tasbih Allahu akbar 34 times, Subhan Allah and Alhamdu lillah 33 times each Sahih al-Bukhari 3705

What is the dua to say after wudu, lying on the right side?

In Sahih al-Bukhari 247 the Prophet told al-Bara ibn Azib to make wudu as for prayer, lie on his right side and say the supplication below as his last words, adding that whoever dies that night dies upon the fitrah, the natural faith. When al-Bara repeated it saying ‘your Messenger’, the Prophet corrected him to ‘your Prophet whom You sent’.

Sahih al-Bukhari 6313 records a close variant that opens Allahumma aslamtu nafsi ilayk, ‘I submit myself to You’, and adds wa wajjahtu wajhi ilayk, ‘and I turn my face to You’. Both wordings are recorded in Sahih al-Bukhari; choose one and learn it exactly from its linked page.

  • Allahumma aslamtu wajhi ilayk, wa fawwadtu amri ilayk, wa alja’tu zahri ilayk, raghbatan wa rahbatan ilayk. La malja’a wa la manja minka illa ilayk. Allahumma amantu bi-kitabika-lladhi anzalt, wa bi-nabiyyika-lladhi arsalt: O Allah, I submit my face to You, entrust my affairs to You and rest my back upon You, in hope and in fear of You. There is no refuge and no escape from You except to You. O Allah, I believe in Your Book which You sent down and in Your Prophet whom You sent (Sahih al-Bukhari 247).
  • Allahumma aslamtu nafsi ilayk, wa fawwadtu amri ilayk, wa wajjahtu wajhi ilayk, wa alja’tu zahri ilayk ..: the opening of the variant wording (Sahih al-Bukhari 6313).

What is the short dua before sleeping?

The shortest bedtime supplication is Bismika Allahumma amutu wa ahya, which Hudhayfah reported the Prophet saying when he intended to sleep (Sahih al-Bukhari 6324); in 6314 he placed his hand under his cheek and said Allahumma bismika amutu wa ahya. Quran 39:42 describes Allah taking souls at death and during sleep, keeping some and releasing the rest until an appointed term.

Two further supplications are reported. The first follows shaking out the bed, and its words echo that verse; the second asks for protection on the Day of Resurrection.

  • Bismika Allahumma amutu wa ahya: In Your name, O Allah, I die and I live (Sahih al-Bukhari 6324).
  • Bismika Rabbi wada’tu janbi, wa bika arfa’uh. In amsakta nafsi farhamha, wa in arsaltaha fahfazha bima tahfazu bihi ’ibadakas-salihin: In Your name, my Lord, I lay down my side, and by You I raise it. If You hold back my soul, have mercy on it; if You release it, protect it as You protect Your righteous servants (Sahih al-Bukhari 6320).
  • Allahumma qini ’adhabaka yawma tab’athu ’ibadak: O Allah, protect me from Your punishment on the day You raise up Your servants (Sunan Abi Dawud 5045; the grading line attributed to al-Albani reads, in Arabic, sahih without the words ‘three times’).

Which Quran passages are recited before sleeping?

Four recitations have clear bedtime reports. In Sahih al-Bukhari 2311, Abu Hurairah was told that whoever recites Ayat al-Kursi on going to bed will have a guardian from Allah and no devil will approach him until morning; the Prophet said the speaker had told the truth though he was a liar, and identified him as Satan.

The three Quls are recited with a particular action: Aishah described the Prophet cupping his hands, blowing into them, reciting and then wiping over as much of his body as he could. Our Ayatul Kursi and three Quls guides explain these passages in more depth.

  • Ayat al-Kursi, Quran 2:255: recited on going to bed (Sahih al-Bukhari 2311).
  • Al-Ikhlas, Al-Falaq and An-Nas: recited into cupped hands, then wiping over the body, beginning with the head, face and front, three times (Sahih al-Bukhari 5017).
  • The last two verses of Al-Baqarah, Quran 2:285–286: sufficient for whoever recites them at night (Sahih al-Bukhari 5009).
  • Al-Kafirun: recite it and sleep at its end, as a declaration of freedom from associating partners with Allah (Sunan Abi Dawud 5055; Sahih, al-Albani).

How many times do you say Subhan Allah, Alhamdu lillah and Allahu akbar before sleep?

Fatimah, worn out by grinding at the hand mill, asked her father for a servant. The Prophet came to her and Ali after they had gone to bed and taught them something he called better than a servant: at bedtime, say Allahu akbar thirty-four times, Subhan Allah thirty-three times and Alhamdu lillah thirty-three times (Sahih al-Bukhari 3705).

The narration in Sahih al-Bukhari 6318 gives thirty-three for each phrase and quotes Ibn Sirin saying the tasbih is thirty-four. A counter can help you keep track, but saying the words attentively matters more than speed.

  • Allahu akbar: Allah is the Greatest (34 times; Sahih al-Bukhari 3705).
  • Subhan Allah: Glory be to Allah (33 times).
  • Alhamdu lillah: Praise be to Allah (33 times).

What is the dua after waking up?

On waking the Prophet said Alhamdu lillahil-ladhi ahyana ba’da ma amatana wa ilayhin-nushur, according to Hudhayfah in Sahih al-Bukhari 6324; the same words appear in 6312 and 6314. It thanks Allah for another day and recalls that everyone will be raised to meet Him. The word guide may help while you learn the Arabic from the linked page.

  • Alhamdu lillahil-ladhi ahyana ba’da ma amatana wa ilayhin-nushur: Praise be to Allah who gave us life after He had caused us to die, and to Him is the resurrection (Sahih al-Bukhari 6324).
  • Word guide: ahyana, He gave us life; amatana, He caused us to die; ilayhi, to Him; an-nushur, the resurrection or rising up.

What should you say if you wake up during the night?

Sahih al-Bukhari 1154 records a remembrance for anyone who wakes during the night. The report says that whoever says it and then asks, O Allah, forgive me, or makes another supplication, will be answered, and that if he makes wudu and prays, his prayer will be accepted. Learn it in stages if it feels long.

  • La ilaha illallahu wahdahu la sharika lah, lahul-mulku wa lahul-hamd, wa huwa ’ala kulli shay’in qadir. Alhamdu lillah, wa subhanallah, wa la ilaha illallah, wallahu akbar, wa la hawla wa la quwwata illa billah: None has the right to be worshipped but Allah alone, without partner; His is the dominion and His is the praise, and He has power over all things. Praise be to Allah, glory be to Allah, none has the right to be worshipped but Allah, Allah is the Greatest, and there is no might and no power except with Allah (Sahih al-Bukhari 1154).
  • Allahummaghfir li: O Allah, forgive me (Sahih al-Bukhari 1154).

What should you do after a bad dream?

The Prophet said that a good dream is from Allah and a bad dream is from Satan, and that whoever sees a dream he dislikes should spit to his left three times and seek refuge in Allah from its evil, for it will not harm him (Sahih Muslim 2261a). Sahih Muslim 2262 adds seeking refuge from Satan three times and turning over.

Sahih al-Bukhari 7044 says not to tell anyone about a disliked dream, and Sahih Muslim 2263a adds getting up to pray. These reports describe actions rather than one fixed formula, so sincere words of seeking refuge in Allah are suitable.

  • Seek refuge in Allah from Satan and from the dream’s evil (Sahih Muslim 2261a and 2262).
  • Spit to your left three times (Sahih Muslim 2261a and 2262).
  • Turn over from the side you were sleeping on (Sahih Muslim 2262).
  • Do not relate the dream to others (Sahih al-Bukhari 7044).
  • Get up and pray (Sahih Muslim 2263a).

Quran passages in this guide

Read each complete verse below in Arabic and the identified English interpretation. Follow the context link before drawing conclusions from an isolated verse.

Az-Zumar 39:42. Allah takes souls at death and during sleep, keeping some and releasing others until an appointed term.

ٱللَّهُ يَتَوَفَّى ٱلْأَنفُسَ حِينَ مَوْتِهَا وَٱلَّتِى لَمْ تَمُتْ فِى مَنَامِهَا ۖ فَيُمْسِكُ ٱلَّتِى قَضَىٰ عَلَيْهَا ٱلْمَوْتَ وَيُرْسِلُ ٱلْأُخْرَىٰٓ إِلَىٰٓ أَجَلٍ مُّسَمًّى ۚ إِنَّ فِى ذَٰلِكَ لَـَٔايَـٰتٍ لِّقَوْمٍ يَتَفَكَّرُونَ ۝٤٢

Allah takes the souls at the time of their death, and those that do not die [He takes] during their sleep. Then He keeps those for which He has decreed death and releases the others for a specified term. Indeed in that are signs for a people who give thought.

Translation: Saheeh International · Read in context

Al-Baqara 2:255. Ayat al-Kursi, reported as a bedtime recitation in Sahih al-Bukhari 2311.

ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ ۚ لَا تَأْخُذُهُۥ سِنَةٌ وَلَا نَوْمٌ ۚ لَّهُۥ مَا فِى ٱلسَّمَـٰوَٰتِ وَمَا فِى ٱلْأَرْضِ ۗ مَن ذَا ٱلَّذِى يَشْفَعُ عِندَهُۥٓ إِلَّا بِإِذْنِهِۦ ۚ يَعْلَمُ مَا بَيْنَ أَيْدِيهِمْ وَمَا خَلْفَهُمْ ۖ وَلَا يُحِيطُونَ بِشَىْءٍ مِّنْ عِلْمِهِۦٓ إِلَّا بِمَا شَآءَ ۚ وَسِعَ كُرْسِيُّهُ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضَ ۖ وَلَا يَـُٔودُهُۥ حِفْظُهُمَا ۚ وَهُوَ ٱلْعَلِىُّ ٱلْعَظِيمُ ۝٢٥٥

Allah - there is no deity except Him, the Ever-Living, the Sustainer of [all] existence. Neither drowsiness overtakes Him nor sleep. To Him belongs whatever is in the heavens and whatever is on the earth. Who is it that can intercede with Him except by His permission? He knows what is [presently] before them and what will be after them, and they encompass not a thing of His knowledge except for what He wills. His Kursi extends over the heavens and the earth, and their preservation tires Him not. And He is the Most High, the Most Great.

Translation: Saheeh International · Read in context

Al-Baqara 2:285. The first of the last two verses of Al-Baqarah, reported as sufficient when recited at night.

ءَامَنَ ٱلرَّسُولُ بِمَآ أُنزِلَ إِلَيْهِ مِن رَّبِّهِۦ وَٱلْمُؤْمِنُونَ ۚ كُلٌّ ءَامَنَ بِٱللَّهِ وَمَلَـٰٓئِكَتِهِۦ وَكُتُبِهِۦ وَرُسُلِهِۦ لَا نُفَرِّقُ بَيْنَ أَحَدٍ مِّن رُّسُلِهِۦ ۚ وَقَالُوا۟ سَمِعْنَا وَأَطَعْنَا ۖ غُفْرَانَكَ رَبَّنَا وَإِلَيْكَ ٱلْمَصِيرُ ۝٢٨٥

The Messenger has believed in what was revealed to him from his Lord, and [so have] the believers. All of them have believed in Allah and His angels and His books and His messengers, [saying], “We make no distinction between any of His messengers.” And they say, “We hear and we obey. [We seek] Your forgiveness, our Lord, and to You is the [final] destination.”

Translation: Saheeh International · Read in context

Al-Baqara 2:286. The closing verse of Al-Baqarah, ending with supplications for pardon and mercy.

لَا يُكَلِّفُ ٱللَّهُ نَفْسًا إِلَّا وُسْعَهَا ۚ لَهَا مَا كَسَبَتْ وَعَلَيْهَا مَا ٱكْتَسَبَتْ ۗ رَبَّنَا لَا تُؤَاخِذْنَآ إِن نَّسِينَآ أَوْ أَخْطَأْنَا ۚ رَبَّنَا وَلَا تَحْمِلْ عَلَيْنَآ إِصْرًا كَمَا حَمَلْتَهُۥ عَلَى ٱلَّذِينَ مِن قَبْلِنَا ۚ رَبَّنَا وَلَا تُحَمِّلْنَا مَا لَا طَاقَةَ لَنَا بِهِۦ ۖ وَٱعْفُ عَنَّا وَٱغْفِرْ لَنَا وَٱرْحَمْنَآ ۚ أَنتَ مَوْلَىٰنَا فَٱنصُرْنَا عَلَى ٱلْقَوْمِ ٱلْكَـٰفِرِينَ ۝٢٨٦

Allah does not charge a soul except [with that within] its capacity. It will have [the consequence of] what [good] it has gained, and it will bear [the consequence of] what [evil] it has earned. “Our Lord, do not impose blame upon us if we have forgotten or erred. Our Lord, and lay not upon us a burden like that which You laid upon those before us. Our Lord, and burden us not with that which we have no ability to bear. And pardon us; and forgive us; and have mercy upon us. You are our protector, so give us victory over the disbelieving people.”

Translation: Saheeh International · Read in context

Al-Ikhlaas 112:1. The opening of Al-Ikhlas, recited with Al-Falaq and An-Nas before wiping over the body.

بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ قُلْ هُوَ ٱللَّهُ أَحَدٌ ۝١

Say, “He is Allah, [who is] One,

Translation: Saheeh International · Read in context

Al-Falaq 113:1. The opening of Al-Falaq, seeking refuge in the Lord of the Daybreak.

بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ قُلْ أَعُوذُ بِرَبِّ ٱلْفَلَقِ ۝١

Say, “I seek refuge in the Lord of daybreak

Translation: Saheeh International · Read in context

An-Naas 114:1. The opening of An-Nas, seeking refuge in the Lord of mankind.

بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ قُلْ أَعُوذُ بِرَبِّ ٱلنَّاسِ ۝١

Say, “I seek refuge in the Lord of mankind,

Translation: Saheeh International · Read in context

Questions readers often ask

Is the bedtime dua ‘aslamtu nafsi’ or ‘aslamtu wajhi’?

Both wordings of al-Bara’s report are in Sahih al-Bukhari. Sahih al-Bukhari 247 reads aslamtu wajhi ilayk, ‘I submit my face to You’, while 6313 reads aslamtu nafsi ilayk and adds wa wajjahtu wajhi ilayk. Learn either exactly as it appears on its source page.

Is it 33 or 34 Allahu akbar at bedtime?

Sahih al-Bukhari 3705 gives Allahu akbar thirty-four times with thirty-three each of Subhan Allah and Alhamdu lillah. Sahih al-Bukhari 6318 gives thirty-three for each and quotes Ibn Sirin placing thirty-four on the tasbih, so narrations differ slightly.

Does reciting Ayat al-Kursi at night guarantee that nothing bad will happen?

Sahih al-Bukhari 2311 says a guardian from Allah stays with the reciter and no devil comes near until morning. It describes protection from devils, not a promise against every hardship.

Should I tell someone about a bad dream?

Sahih al-Bukhari 7044 advises not telling anyone about a disliked dream, while a good dream may be shared with someone you love. If distressing dreams keep returning, speaking to a doctor or counsellor is sensible too.

Do I need wudu to say the bedtime duas?

Sahih al-Bukhari 247 pairs wudu with the right-side supplication, and al-Bukhari placed it under a chapter on the superiority of sleeping with ablution. For whether the other remembrances need wudu, ask a qualified teacher; this guide does not give rulings.

Sources

  1. Sahih al-Bukhari 247 Hadith

    Wudu before bed, lying on the right side and the supplication Allahumma aslamtu wajhi ilayk as the last words; chapter on the superiority of sleeping with ablution.

  2. Sahih al-Bukhari 6313 Hadith

    Variant wording beginning Allahumma aslamtu nafsi ilayk, with wa wajjahtu wajhi ilayk.

  3. Sahih al-Bukhari 6324 Hadith

    Bismika Allahumma amutu wa ahya on going to sleep and the praise for being brought back to life on waking.

  4. Sahih al-Bukhari 6312 Hadith

    The same waking supplication, with the bedtime words recorded as Bismika amutu wa ahya.

  5. Sahih al-Bukhari 6314 Hadith

    Placing the hand under the cheek and saying Allahumma bismika amutu wa ahya; the waking supplication.

  6. Sahih al-Bukhari 6320 Hadith

    Shaking out the bed with the inner edge of the lower garment and the supplication Bismika Rabbi wada’tu janbi.

  7. Sunan Abi Dawud 5045 Hadith

    Right hand under the cheek and Allahumma qini ’adhabaka yawma tab’athu ’ibadak; the grading line attributed to al-Albani reads sahih without the words ‘three times’.

  8. Sahih al-Bukhari 2311 Hadith

    Abu Hurairah’s account of reciting Ayat al-Kursi on going to bed, a guardian from Allah and no devil approaching until morning.

  9. Sahih al-Bukhari 5017 Hadith

    Reciting Al-Ikhlas, Al-Falaq and An-Nas into cupped hands at bedtime and wiping over the body, three times.

  10. Sahih al-Bukhari 5009 Hadith

    The last two verses of Al-Baqarah recited at night will be sufficient for the reciter.

  11. Sunan Abi Dawud 5055 Hadith

    Reciting Al-Kafirun and sleeping at its end as a declaration of freedom from polytheism; displayed grade Sahih (al-Albani).

  12. Sahih al-Bukhari 3705 Hadith

    The Prophet’s bedtime advice to Ali and Fatimah: Allahu akbar 34 times, Subhan Allah 33 times and Alhamdu lillah 33 times.

  13. Sahih al-Bukhari 6318 Hadith

    Chapter on takbir and tasbih on going to bed; thirty-three of each, with Ibn Sirin quoted as saying the tasbih is thirty-four.

  14. Sahih al-Bukhari 1154 Hadith

    The remembrance for one who wakes at night, followed by asking forgiveness or supplicating, and praying after wudu.

  15. Sahih Muslim 2261a Hadith

    A good vision is from Allah and a bad dream from Satan; spit to the left three times and seek refuge in Allah from its evil.

  16. Sahih Muslim 2262 Hadith

    After a disliked dream, spit to the left three times, seek refuge from Satan three times and turn from the side one was lying on.

  17. Sahih al-Bukhari 7044 Hadith

    Share a good dream only with someone you love; do not tell anyone about a disliked dream.

  18. Sahih Muslim 2263a Hadith

    Three types of dream; whoever sees something he dislikes should get up and pray and not relate it to people.

  19. Quran 39:42 Primary text

    Allah takes souls at death and in sleep; rendered on this page from the site’s verified corpus.

  20. Quran 2:255 (Ayat al-Kursi) Primary text

    The Verse of the Throne, reported as a bedtime recitation.

  21. Quran 2:285 Primary text

    The first of the last two verses of Al-Baqarah.

  22. Quran 2:286 Primary text

    The final verse of Al-Baqarah.

Qur’an Arabic: Tanzil (CC BY 3.0). English: Saheeh International (via Tanzil).

Pass it on

If this guide helped you, share it with someone it could help too.

All guides

Share

An image to post on your Status or Stories.