1. QASAS
  2. Blog

Dua Before Sleeping and Waking Up: What to Say, What It Means, and Why

The short words a Muslim says before closing their eyes and after opening them, the ayat to recite at bedtime, and what the Quran teaches about sleep.

By QASAS16 min read

Young men in cloaks and their dog sitting at the mouth of a cave under a full moon, seen from behind

The dua before sleeping is only four words in Arabic, but it holds a whole way of looking at the night. You lie down, and before your eyes close you put your life in Allah's hands: in His name you "die", and in His name you will "live" again in the morning. Then, when you wake, your first words are praise for the One who gave you your life back.

This guide gives you the du'as of sleep and waking that are in the QASAS app, in transliteration and meaning (the Arabic page of this guide shows the full Arabic text), with their sources: the du'a before sleeping, the du'a asking protection on the Day of Resurrection, the two passages of the Quran recited at bedtime, and the du'a on waking up. The wording and references are exactly the ones in the app, which follows the book Hisn al-Muslim. Then we look at what the Quran itself says about sleep, explained from al-Tafsir al-Muyassar, al-Sa'di and Ibn Kathir: why sleep is called a small death, why the night is a covering, and why waking up is a small picture of the resurrection.

What is the dua before sleeping?

The dua before sleeping is "Bismika Allahumma amutu wa ahya", said as you lie down to sleep.

In transliteration: Bismika Allahumma amutu wa ahya.

Meaning: "In Your name, O Allah, I die and I live." (al-Bukhari 6324)

It is short enough for a four-year-old to learn in one night, and deep enough for an adult to think about for years. Notice the order: "I die" comes first, then "I live". Before sleep you are about to enter something like death, and you enter it in Allah's name. You do not know for certain that you will wake up. You trust that if you do, it will also be in His name and by His permission.

Some people find it strange that a bedtime du'a talks about death. The Quran explains why it does, and once you read the ayah below, the du'a stops being strange and becomes comforting.

Why does the du'a call sleep "dying"? The Quran on the small death

The Quran says that sleep is a kind of taking of the soul:

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

(42) Allāh 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.

Surah Az-Zumar (39:42) · Saheeh International

Al-Tafsir al-Muyassar explains: Allah takes the souls at the time of their death, and this is the greater death, when a person's term ends; and He takes the soul of the one who has not died, in their sleep, and this is the lesser death. He keeps the soul of the one whose death He has decreed, and sends the other back to complete its term and its provision, by returning it to the sleeper's body. In this, it says, are clear signs of Allah's power for whoever reflects.

Al-Sa'di adds that the ayah shows Allah alone is in control of His servants in every state: awake and asleep, alive and dead. He explains that the one whose soul is kept is a person who had died, or whose death had been decreed to come in their sleep, and that the soul sent back returns "to complete its provision and its term". He also points out that the ayah ends by calling on us to think about it, because it shows Allah's complete power and His ability to bring the dead back to life.

Ibn Kathir explains that the Quran mentions the two "takings" together in two places. Here, in Surah az-Zumar, it mentions the greater death first and then the lesser one. In Surah al-An'am, it mentions the lesser one first:

﴿وَهُوَ ٱلَّذِى يَتَوَفَّىٰكُم بِٱلَّيْلِ وَيَعْلَمُ مَا جَرَحْتُم بِٱلنَّهَارِ ثُمَّ يَبْعَثُكُمْ فِيهِ لِيُقْضَىٰٓ أَجَلٌ مُّسَمًّى ۖ ثُمَّ إِلَيْهِ مَرْجِعُكُمْ ثُمَّ يُنَبِّئُكُم بِمَا كُنتُمْ تَعْمَلُونَ ٦٠﴾

(60) And it is He who takes your souls by night and knows what you have committed by day. Then He revives you therein [i.e., by day] that a specified term may be fulfilled. Then to Him will be your return; then He will inform you about what you used to do.

Surah Al-An'am (6:60) · Saheeh International

Al-Muyassar explains: Allah takes your souls at night in a way that resembles their taking at death, He knows what you earned by day, and then He returns your souls to your bodies when you wake, in a way that resembles bringing the dead back to life, so that your appointed terms in this world are completed. Al-Sa'di describes the same rhythm: Allah takes them at night with the death of sleep, so their movements become still and their bodies rest, then He raises them by waking so they can see to their religious and worldly affairs, and this continues until their terms are complete.

So "I die and I live" is not a figure of speech made up for bedtime. It is the Quran's own description of what happens every night. Ibn Kathir, explaining 39:42, also cites a du'a from al-Bukhari and Muslim for going to bed, in which the believer asks Allah to have mercy on their soul if He keeps it, and to protect it if He sends it back. The idea is the same: before sleep, we hand ourselves to Allah.

Young men in cloaks and their dog sitting at the mouth of a cave at night under a full moon, seen from behind
Young men in cloaks and their dog sitting at the mouth of a cave at night under a full moon, seen from behind

The du'a for protection on the Day of Resurrection

The app gives a second short du'a for bedtime, said three times:

In transliteration: Allahumma qini 'adhabaka yawma tab'athu 'ibadak. (three times)

Meaning: "O Allah, protect me from Your punishment on the Day You resurrect Your servants." (Abu Dawud 5045, at-Tirmidhi 3398)

This du'a follows naturally from the first one. If sleep is a small death and waking is a small resurrection, then lying down at night is a daily reminder of the great Day when all people are raised. The Arabic word for "resurrect" in this du'a, tab'athu, comes from the same root as the word in 6:60, "then He revives you therein" (yab'athukum), and in the story of the young men of the cave, “We awakened them” (Quran 18:19) (ba'athnahum). Waking up and being raised on the Day of Judgement are described with one family of words.

Ayat al-Kursi before sleeping

The app's Sleep section includes Ayat al-Kursi (2:255). Al-Sa'di, in his tafsir of this ayah, says it is the greatest ayah of the Quran, and that because of the great meanings it contains, many hadith encourage making it a regular recitation in the morning, in the evening, when going to sleep and after the obligatory prayers.

There is a beautiful match between this ayah and bedtime. You are about to sleep, and you recite that Allah is “the Ever-Living, the Self-Sustaining. Neither drowsiness overtakes Him nor sleep.” (Quran 2:255) You will be unconscious for hours; He will not be, even for a moment. And “their preservation tires Him not” (Quran 2:255): keeping the heavens and the earth is no burden to Him, so keeping one sleeping person safe is nothing. We explain the whole ayah line by line in Ayat al-Kursi meaning.

The last two ayat of Surah al-Baqarah at night

The app also lists the last two ayat of Surah al-Baqarah for the night:

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

(285) The Messenger has believed in what was revealed to him from his Lord, and [so have] the believers. All of them have believed in Allāh 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." (286) Allāh 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."

Surah Al-Baqarah (2:285–286) · Saheeh International

Al-Sa'di explains that it is established that whoever recites these two ayat in their night, they will suffice them, meaning from all evils, because of the great meanings they contain. He shows that the first ayah is a statement of faith in all its foundations: belief in Allah, His angels, His books and all His messengers without distinguishing between them, and the believers' words "We hear and we obey". The second ayah is a series of du'as, and al-Sa'di notes that Allah answered them, so they are accepted for the believers as a whole, and from individuals as long as nothing prevents it.

Al-Muyassar explains the opening of 2:286 as meaning that Allah's religion is ease without hardship: He does not ask His servants for what they cannot bear. Ibn Kathir adds that "if we have forgotten or erred" covers leaving a duty out of forgetfulness, or doing something wrong out of not knowing the right way.

Read them slowly before sleep and they work almost like a review of the day: I believe, I heard and I tried to obey; forgive what I forgot and where I went wrong; do not burden me with more than I can carry; pardon me, forgive me, have mercy on me.

What is the dua after waking up?

The dua after waking up is a sentence of praise:

In transliteration: Alhamdu lillahil-ladhi ahyana ba'da ma amatana wa ilayhin-nushur.

Meaning: "Praise be to Allah who gave us life after He caused us to die, and to Him is the return." (al-Bukhari 6312)

It answers the du'a you said at night. In the evening: "In Your name I die and I live." In the morning: "Praise be to Allah who gave us life after He caused us to die." The soul that was taken has been sent back, as 39:42 describes, and the first thing you do with it is thank the One who returned it.

The last words, wa ilayhin-nushur, "and to Him is the return" (or "the resurrection"), are the same words the Quran uses: “and to Him is the resurrection” (Quran 67:15). Al-Muyassar explains them there as the raising from the graves for the reckoning and the reward. And in Surah al-Furqan, the day itself is called nushur:

﴿وَهُوَ ٱلَّذِى جَعَلَ لَكُمُ ٱلَّيْلَ لِبَاسًا وَٱلنَّوْمَ سُبَاتًا وَجَعَلَ ٱلنَّهَارَ نُشُورًا ٤٧﴾

(47) And it is He who has made the night for you as clothing and sleep [a means for] rest and has made the day a resurrection.

Surah Al-Furqan (25:47) · Saheeh International

Ibn Kathir explains that sleep is a cutting-off of movement so the body can rest, because the limbs grow tired from moving about all day seeking a living; when night comes and movement stops, sleep brings rest to the body and the soul together. Then "the day a resurrection" means the day in which people spread out for their work and their livelihood. Every morning, getting up and going out is a small picture of the great rising to come.

A man in a hooded cloak rising from the sand in a ruined town at sunrise, seen from behind
A man in a hooded cloak rising from the sand in a ruined town at sunrise, seen from behind

The Quran tells a story that makes this vivid: a man whom Allah caused to die for a hundred years and then raised, who thought he had stayed only “a day or part of a day” (Quran 2:259). Read it in the man who died for 100 years.

The Man Who Slept 100 YearsWatch this story in QASASThe Man Who Slept 100 YearsHe slept a hundred years, and his food had not changed.Open on Google Play →

What the Quran says about sleep

Beyond the du'as, the Quran speaks about sleep as one of Allah's gifts and signs. Three short passages are worth knowing.

Sleep is a rest and the night a covering

﴿وَجَعَلْنَا نَوْمَكُمْ سُبَاتًا ٩ وَجَعَلْنَا ٱلَّيْلَ لِبَاسًا ١٠ وَجَعَلْنَا ٱلنَّهَارَ مَعَاشًا ١١﴾

(9) And made your sleep [a means for] rest (10) And made the night as clothing. (11) And made the day for livelihood.

Surah An-Naba (78:9–11) · Saheeh International

Al-Muyassar explains: Allah made our sleep a rest for our bodies, in which we become calm and still; He made the night a covering whose darkness wraps us the way a garment covers the one wearing it; and He made the day a time to spread out and seek our living. Al-Sa'di adds that sleep is a break from our work which, if it went on without stopping, would harm our bodies.

Al-Sa'di, on the similar ayah 25:47, calls this part of Allah's mercy and kindness: if there were no night, people would never be still and would be harmed by endless activity; and if the darkness never ended, their livelihoods would stop. So He made both.

Sleep is a sign

“And of His signs is your sleep by night and day and your seeking of His bounty.” (Quran 30:23) Al-Muyassar explains that in sleep there is rest and the removal of tiredness, and that this is a sign of Allah's complete power for people who listen to reminders with reflection. Every night we lose consciousness completely and wake up restored, without having done anything to make it happen.

The young men who slept in Allah's care

The most famous sleep in the Quran is the sleep of the young men of the cave. Before they slept, they made a du'a: “Our Lord, grant us from Yourself mercy and prepare for us from our affair right guidance.” (Quran 18:10) Then: “So We cast [a cover of sleep] over their ears within the cave for a number of years.” (Quran 18:11)

They went to sleep having handed their affair to Allah, and Allah looked after them through all those years. It is the perfect story to tell before bed, and you can read it in full in the People of the Cave.

The Sleepers of the CaveWatch this story in QASASThe Sleepers of the CaveYoung men fled a tyrant king and slept for 309 years.Open on Google Play →

Remembering Allah lying on your side

The Quran praises “Who remember Allāh while standing or sitting or [lying] on their sides” (Quran 3:191). Al-Sa'di explains that this means they remember Him in all their states, and that it includes every kind of remembrance, with the tongue and with the heart. Lying in bed saying the du'a before sleeping is one of the simplest ways to be among them.

The du'as of sleep at a glance

WhenWhat to saySource
Lying down to sleep"Bismika Allahumma amutu wa ahya" (In Your name, O Allah, I die and I live)al-Bukhari 6324
Before sleep, three times"Allahumma qini 'adhabaka yawma tab'athu 'ibadak"Abu Dawud 5045, at-Tirmidhi 3398
Before sleepAyat al-KursiQuran 2:255
At nightThe last two ayat of al-BaqarahQuran 2:285-286
On waking"Alhamdu lillahil-ladhi ahyana ba'da ma amatana wa ilayhin-nushur"al-Bukhari 6312

What about other bedtime adhkar?

The app's Sleep and waking section keeps a short list, so it is easy to learn and to keep every night. You will see other bedtime adhkar in longer books of du'a, and in his tafsir of 39:42 Ibn Kathir cites one of them, the du'a asking Allah to have mercy on the soul if He keeps it and to protect it if He sends it back. If you want to add more to your routine, take the wording and its source from a trusted book of adhkar or a scholar you trust, rather than from a social media image without a reference.

If worry keeps you awake, the app's Distress and worry section has the du'a of Prophet Yunus (peace be upon him) from the darkness of the whale: “There is no deity except You; exalted are You. Indeed, I have been of the wrongdoers.” (Quran 21:87) It also has the words of the believers in 3:173: “Sufficient for us is Allāh, and [He is] the best Disposer of affairs.” (Quran 3:173) Both are short enough to say quietly in the dark. Yunus's story is told in the story of Prophet Yunus and the whale.

A simple Islamic bedtime routine

A routine makes the du'as stick, for adults and children alike. Here is one that takes about ten minutes:

  1. Close the day. Pray 'Isha, put the phone down and turn the lights low.
  2. Recite Ayat al-Kursi. Slowly, thinking of “Neither drowsiness overtakes Him nor sleep” (Quran 2:255).
  3. Recite the last two ayat of al-Baqarah. Treat the du'as in 2:286 as a review of your day.
  4. Lie down and say the du'a before sleeping. "Bismika Allahumma amutu wa ahya."
  5. Say the protection du'a three times. "Allahumma qini 'adhabaka yawma tab'athu 'ibadak."
  6. In the morning, start with praise. Before you reach for anything, say "Alhamdu lillahil-ladhi ahyana…"

For children, add one short true story from the Quran between steps 1 and 2. Our guide to Islamic bedtime stories for kids has a seven-night plan of calm stories that end in safety and mercy.

Teaching children the du'a before sleeping

Bedtime is the easiest place to teach a child du'a: it happens every night, the child is close to you, and the room is quiet.

  1. Start with four words. "Bismika Allahumma amutu wa ahya" is short enough to learn in a week. Say it together each night until they say it alone.
  2. Explain it gently. For young children, say: "When we sleep, Allah looks after us all night, and in the morning He wakes us up." Leave the word "death" for when they are older.
  3. For older children, read 39:42. From around eight, the idea of the "small death" helps them understand why we hand ourselves to Allah before we sleep and thank Him when we wake.
  4. Make the morning du'a the first words of the day. Say it when you open the curtains, so it becomes part of waking up.
  5. Tell the story of the cave. Young believers who prayed, slept in Allah's care and woke up safe: no story fits bedtime better.

Find these du'as in QASAS

All the du'as in this article are in the QASAS app, which is free, with no ads and no account. Open the Du'as section and choose Sleep and waking: each du'a shows its Arabic, its meaning in your language and its source, and the Quran items open the exact ayat. You can turn on adhkar reminders so the evening adhkar reach you before bed.

Ayat al-Kursi, the end of al-Baqarah and every ayah quoted here open in the full mushaf with tafsir, al-Muyassar and Ibn Kathir, with recitation, translation and word-by-word meaning. The app also gives you prayer times calculated on your phone, so you know when 'Isha comes in, the qibla direction, and a 3D tasbih for dhikr. And for children, the cinematic stories of the People of the Cave and the man raised after a hundred years make a calm last story of the day: you can watch them or read them page by page, then take the short quiz together.

Frequently asked questions

What is the dua before sleeping?

The dua before sleeping is "Bismika Allahumma amutu wa ahya", which means "In Your name, O Allah, I die and I live" (al-Bukhari 6324). It is said when you lie down to sleep.

What is the dua after waking up?

On waking you say "Alhamdu lillahil-ladhi ahyana ba'da ma amatana wa ilayhin-nushur": "Praise be to Allah who gave us life after He caused us to die, and to Him is the return" (al-Bukhari 6312).

Why do we say "I die" before sleeping?

Because the Quran describes sleep as a taking of the soul. “Allāh takes the souls at the time of their death, and those that do not die [He takes] during their sleep.” (Quran 39:42) Al-Muyassar calls death the greater taking and sleep the lesser one, after which Allah sends the soul back to complete its term.

What should I recite before sleeping?

The QASAS app's Sleep section lists Ayat al-Kursi (2:255), the last two ayat of Surah al-Baqarah (2:285-286), the du'a "Bismika Allahumma amutu wa ahya" and "Allahumma qini 'adhabaka yawma tab'athu 'ibadak" three times. Al-Sa'di says many hadith encourage reciting Ayat al-Kursi at sleep.

Is it true that the last two ayat of al-Baqarah are enough at night?

Yes. Al-Sa'di writes that it is established that whoever recites these two ayat in their night, they will suffice them from all evils, because of the great meanings of faith and du'a they contain.

Is sleep really called a small death in Islam?

Yes, the tafsir uses exactly this description. Al-Muyassar and al-Sa'di on 39:42 call death the greater death and sleep the lesser death, and Ibn Kathir explains that 39:42 and 6:60 both mention the two kinds of taking of the soul.

What should I say if I cannot sleep because of worry?

Turn to Allah with short du'as you know well. The app's Distress and worry section includes the du'a of Yunus, “There is no deity except You; exalted are You. Indeed, I have been of the wrongdoers.” (Quran 21:87), and “Sufficient for us is Allāh, and [He is] the best Disposer of affairs.” (Quran 3:173)

Can children say the dua before sleeping?

Yes, and it is one of the best du'as to start with because it is only four words. Say it with them every night, explain that Allah looks after them while they sleep, and add the morning du'a when they wake.

Sources

Quran: al-Baqarah 2:255, 2:259, 2:285-286; Al 'Imran 3:173, 3:191; al-An'am 6:60; al-Kahf 18:10-11, 18:19; al-Anbiya' 21:87; al-Furqan 25:47; ar-Rum 30:23; az-Zumar 39:42; al-Mulk 67:15; an-Naba' 78:9-11. Tafsir: al-Tafsir al-Muyassar, Tafsir al-Sa'di (Taysir al-Karim al-Rahman) and Tafsir Ibn Kathir on these ayat. Du'a wording and references as in the QASAS app (Sleep and waking; Distress and worry), following Hisn al-Muslim.

Updated: · By QASAS

Free · No ads · No account

Watch and read it in QASAS

Free on iPhone and Android. Download QASAS from the App Store or Google Play.

QR code: QASAS on Google PlayScan with your Android phone to install

Watch these stories in the app

Keep reading