Published on

Dhikr for Sleep: The Prophet's Bedtime Practice for a Restful Night

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • Deen Back

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

In the name of God, the Most Gracious, the Most Merciful.

A peaceful sleeping space with the light of a dhikr practice before bed

The last thing on your mind before you fall asleep shapes the first orientation of your sleeping heart.

For most of us, that last thing is a screen. A notification, a news headline, a social media feed. The night begins with whatever the algorithm decided to serve, and we drift off carrying it.

The Prophet ﷺ had a different approach. He had a specific, practiced sequence for the moments before sleep — and it has been preserved in detail across the hadith literature. It takes under five minutes. It is one of the most complete bedtime routines that exists.

The Dhikr for Sleep

Step 1: Tasbeeh al-Fatimah (the most rewarding bedtime dhikr)

سُبْحَانَ اللَّهِ (×33) — الْحَمْدُ لِلَّهِ (×33) — اللَّهُ أَكْبَرُ (×34)

SubhanAllah (33 times) — Alhamdulillah (33 times) — Allahu Akbar (34 times)

— (Sahih Bukhari 3705)

The Prophet taught this to Fatimah رضي الله عنها when she complained about the difficulty of household work and asked for a servant. He said: "Shall I guide you to something better than a servant? When you go to your bed, say SubhanAllah 33 times, Alhamdulillah 33 times, and Allahu Akbar 34 times — that is better for you than a servant."

Step 2: The sleeping dua

بِاسْمِكَ اللَّهُمَّ أَمُوتُ وَأَحْيَا

Bismika Allahumma amutu wa ahya

"In Your name, O Allah, I die and I live."

— (Sahih Bukhari 6324)

Step 3: Ayatul Kursi (Quran 2:255)

The Prophet ﷺ said: "Whoever recites Ayatul Kursi before sleeping, Allah will appoint a guardian over him throughout the night, and Shaytan will not approach him until morning." (Sahih Bukhari 5010)

Step 4: The three Quls — Al-Ikhlas, Al-Falaq, An-Nas — three times each

After reciting each set, blow gently into cupped hands and wipe over the head, face, and as much of the body as possible. Repeat three times. The Prophet ﷺ did this consistently. (Sahih Bukhari 5017)

When to do this: Immediately upon getting into bed, before lying down if possible. The sequence from start to finish takes four to five minutes.

The Story Behind It

The story of Tasbeeh al-Fatimah reveals something important about how the Prophet thought about worship.

Fatimah رضي الله عنها came to her father exhausted. Her hands were rough from grinding grain. She had heard that captives had been brought to the city and hoped to ask for help with the household. But the Prophet was sleeping. She came back the next morning. This time he said:

"Shall I tell you about something better than what you asked for?"

He taught her the dhikr. Then he said: "Do not leave it." — meaning, do not abandon this practice.

The point is not that physical help does not matter. The point is that this dhikr carries a weight the Prophet considered more valuable than a servant — because it builds the spiritual stamina that sustains a person through difficulty far more reliably than any external resource.

The sleeping dua — Bismika Allahumma amutu wa ahya — reflects the Islamic understanding of sleep itself. Sleep is a minor death: consciousness withdraws, the soul temporarily departs. Waking up is a form of resurrection. Starting sleep with this acknowledgment orients the heart to the truth that every moment of consciousness is a gift, not a given.

How to Build This into Your Nightly Routine

The obstacle is not the five minutes. The obstacle is the phone.

Make the phone charge outside the bedroom. This is the single highest-leverage change for building a bedtime dhikr habit. As long as the phone is beside you in bed, the algorithm will win. The screen is designed to hold attention; the dhikr requires your attention.

Place your prayer beads on your pillow. This creates a physical cue. When you see the prayer beads, you know what to do before lying down.

Do Tasbeeh al-Fatimah on your fingers. The Prophet said to count on the right hand. This eliminates the need for any tools and makes the practice location-independent — you can do it traveling, in a hotel, anywhere.

Build the sequence into a fixed order. Always: sleeping dua first, then Tasbeeh al-Fatimah, then Ayatul Kursi, then the 3 Quls. Having a fixed order reduces decision fatigue and means you can do it even when very tired.

On nights when you are too tired for the full sequence, do at minimum Ayatul Kursi and the sleeping dua. Two elements are better than skipping everything because you could not do all four.

Build Your Nightly Dhikr Habit With a Streak You Can See

DeenBack helps you track your bedtime dhikr practice — so you know exactly how consistent you are and build the nightly routine the Prophet lived by.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Dua when having nightmares:

أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ غَضَبِهِ وَعِقَابِهِ وَشَرِّ عِبَادِهِ وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونِ

A'udhu bikalimatillahit-tammati min ghadabihi wa iqabihi wa sharri ibadihi wa min hamazatish-shayatin wa an yahdurun

"I seek refuge in the perfect words of Allah from His anger, His punishment, the evil of His servants, and from the promptings of the devils and their presence." — (Abu Dawud 3893)

For when anxious thoughts prevent sleep, say La hawla wa la quwwata illa billah repeatedly until the thoughts slow down. Many people find this more effective than counting sheep.

The articles on dua for sleeping and dua for nightmares cover the supplication side of the bedtime practice in more depth. For the morning equivalent, how to do morning adhkar is the natural companion to this article.

Common Questions

Can I say the bedtime dhikr in English? Tasbeeh al-Fatimah and the sleeping dua are best kept in Arabic — the transliteration is straightforward to learn. For personal additions (worries you want to hand to Allah), adding English after the prescribed sequence is valid and encouraged.

What if I am in a situation where I cannot say the dhikr out loud? You can do it silently. The heart is the primary site of dhikr. Whispering or moving the lips quietly also works. The Prophet did not set a volume requirement.

Is it okay to listen to a recording of the 3 Quls instead of reciting myself? For the prescribed practice — reciting and blowing into your hands — you need to recite it yourself. Listening to a recording has its own benefit but does not substitute for the Sunnah practice here.

I keep falling asleep before finishing the sequence. What should I do? Do Ayatul Kursi and the sleeping dua first, since these are the most emphasized. Save Tasbeeh al-Fatimah for when you are more alert — or practice it at a different time to build familiarity, so you can do it more automatically when tired.

The Night Belongs to Allah Too

We spend a third of our lives asleep. The Prophet ﷺ thought carefully about how to enter that third.

The bedtime dhikr is not about earning reward mechanically. It is about ending the day in the remembrance of the One who gave you the day, and beginning the night under His care.

Five minutes. Prayer beads on the pillow. Phone charging elsewhere. Your last conscious moments spent in SubhanAllah, Alhamdulillah, Allahu Akbar — the words that hold the universe.

Start tonight.

End Every Day in the Remembrance of Allah

DeenBack tracks your nightly dhikr practice and builds your streak day by day — so the Prophet's bedtime routine becomes the last thing you do every night.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Frequently Asked Questions

What dhikr should I say before sleeping?

The Sunnah prescribes: Ayatul Kursi once, Surah Al-Ikhlas/Al-Falaq/An-Nas three times each (blowing into cupped hands and wiping over the body), and Tasbeeh al-Fatimah: SubhanAllah 33x, Alhamdulillah 33x, Allahu Akbar 34x. Also the comprehensive sleeping dua: Bismika Allahumma amutu wa ahya.

What did the Prophet say before sleeping?

The Prophet ﷺ would recite Ayatul Kursi and say no one who recites it before sleeping will be harmed until morning. He would also recite the 3 Quls (blowing into hands and wiping the body), perform Tasbeeh al-Fatimah, and say Bismika Allahumma amutu wa ahya. These are all in Sahih Bukhari.

Does dhikr before sleep affect the quality of sleep?

Many Muslims report significant improvement in sleep quality after building this routine. Beyond the spiritual dimension, the act of reciting dhikr is medically consistent with pre-sleep relaxation practices — slowing breath, reducing mental activity, shifting focus away from worries. The religious and practical benefits compound each other.

What is Tasbeeh al-Fatimah?

Tasbeeh al-Fatimah is: SubhanAllah 33 times, Alhamdulillah 33 times, Allahu Akbar 34 times (total 100). The Prophet taught it to Fatimah رضي الله عنها when she asked for a servant to help with household work. He said this dhikr before sleep was better for her than a servant. Reported in Sahih Bukhari 3705.

What if I fall asleep during the bedtime dhikr?

This is considered blessed — you fell asleep in the remembrance of Allah. The intention and beginning of the practice is what counts. Do not worry if sleep overtakes you mid-dhikr. Many scholars say this is one of the best ways to fall asleep.