Published on

Islamic Prayer on Death: Duas and What to Say

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • DeenUp

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

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

Islamic prayer at the time of death — duas and guidance for Muslims facing loss

Death arrives without announcement. When it comes — for a parent, a spouse, a friend, or one day for ourselves — the Muslim heart instinctively asks: "What does Islam ask of me right now?"

The answer is: a great deal of mercy, a specific set of words, and a practical path through grief. Islam is not silent on death. From the moment someone is dying to the days of mourning after, the Prophet Muhammad ﷺ gave us clear, beautiful guidance so that even our hardest moments are acts of worship.

What Is the Islamic Prayer Said at the Time of Death?

The central Islamic response to death is the istirja' — إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ — "Inna lillahi wa inna ilayhi raji'un," meaning "Truly, we belong to Allah and to Him we shall return" (Surah Al-Baqarah, 2:156). Reciting this upon any death is a Sunnah of the Prophet ﷺ. Allah promises those who say it with patience both His blessings and special mercy: "Those are the ones upon whom are blessings from their Lord and mercy. And it is those who are the rightly guided." (2:157)

What the Quran Says About Death

Islam frames death not as an end but as a return — a transition from this world (dunya) to the hereafter (akhirah). The Quran states plainly:

كُلُّ نَفْسٍ ذَائِقَةُ الْمَوْتِ

"Every soul will taste death." (Surah Al-Imran, 3:185)

This verse reminds us that death is a universal appointment — not a tragedy to be feared but a reality to be prepared for. The Prophet ﷺ taught Muslims to remember death often: "Remember frequently the destroyer of pleasures — death." (Sunan al-Tirmidhi 2307). Far from being morbid, this awareness motivates righteous living and keeps our priorities clear.

For a deeper reflection on Islamic teachings about the hereafter, see our guide on preparing for the hereafter and what is the Day of Judgment in Islam.

Duas for Every Stage: A Complete Reference

Islam provides specific words and actions for each stage of death. This table gives you a quick reference:

StageWhat to DoKey Words / Basis
When someone is dyingEncourage the Shahadah; recite Surah Yasin"Prompt your dying ones with La ilaha illa Allah" (Sahih Muslim)
At the moment of deathClose the eyes; cover the body; say istirjaإِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ — Surah Al-Baqarah, 2:156
Preparing the bodyPerform ghusl (washing) and kafan (shrouding)Fard kifayah — collective obligation on the community
Before burialPerform Salat al-JanazahFard kifayah; Sahih al-Bukhari
At the gravesideRecite dua; place body on right side facing Qibla"Bury them and say Bismillah and upon the Sunnah of the Messenger"
After burialMake ongoing dua; give sadaqah on their behalfSahih Muslim 1631
Mourning periodThree days (or four months and ten days for a widow)Surah Al-Baqarah, 2:234

The Prayer for a Dying Person

When someone is close to death, gently encourage them to say the Shahadah. The Prophet ﷺ said: "Prompt your dying ones to say La ilaha illa Allah." (Sahih Muslim — Book of Funerals). This should be a soft, loving prompt — not a demand. Many scholars also recommend reciting Surah Yasin (Chapter 36) nearby, as it brings peace and eases the transition according to several hadith traditions.

Upon Hearing of a Death

Say immediately:

إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ

Inna lillahi wa inna ilayhi raji'un

"Truly, we belong to Allah and to Him we shall return." (Surah Al-Baqarah, 2:156)

This phrase transforms grief into an act of worship. You acknowledge that everything — every soul, every relationship — belongs to Allah, and to Him all things return.

Dua for the Deceased

In Salat al-Janazah and at any private moment, recite:

اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ

Allahumma ighfir lahu warhamhu wa 'afihi wa'fu 'anhu

"O Allah, forgive him, have mercy on him, grant him well-being, and pardon him."

Change lahu (him) to laha (her) when making dua for a woman. This supplication is well established from the practice of the companions.

Allah commands you to seek knowledge

“My Lord, increase me in knowledge” (Surah Ta-Ha 20:114). DeenUp turns that command into a daily habit — a swipeable feed of bite-sized, scholar-approved Islamic lessons, quick quizzes, and daily streaks.

Download DeenUp on the App Store
DeenUp app — a swipeable Learn feed of bite-sized, scholar-approved Islamic lessons

Salat al-Janazah: The Funeral Prayer

Salat al-Janazah is the Islamic funeral prayer — a fard kifayah (collective duty) that the Muslim community must perform for every deceased Muslim. The Prophet ﷺ said: "Whoever prays over the deceased will have a qirat of reward; and whoever accompanies the funeral until it is buried will have two qirats." (Sahih al-Bukhari 1325)

The prayer is performed standing, without ruku or sujood:

  1. First Takbeer — Recite Surah Al-Fatihah silently
  2. Second Takbeer — Send Salawat on the Prophet ﷺ (as in Tashahud)
  3. Third Takbeer — Recite the dua for the deceased
  4. Fourth Takbeer — Make general dua and send salaam

For a detailed walkthrough of the full funeral process, see our guide on Islamic funeral rituals.

Ongoing Duas for the Deceased: Keeping the Connection

Death does not end the bond between the living and the departed. The Prophet ﷺ said that three things continue benefiting a person after death: ongoing charity (sadaqah jariyah), beneficial knowledge, and a righteous child who prays for them. (Sahih Muslim 1631)

For a deceased parent, a deeply moving dua comes directly from the Quran:

رَبِّ ارْحَمْهُمَا كَمَا رَبَّيَانِي صَغِيرًا

Rabbi irhamhuma kama rabbayani saghira

"My Lord, have mercy on them both as they raised me when I was small." (Surah Al-Isra, 17:24)

For more duas to recite for those who have passed, see dua for parents who passed away and dua of death.

Practical ongoing acts include:

  • Regular private dua for deceased loved ones by name
  • Giving sadaqah with the intention that its reward reaches them
  • Reading Quran and dedicating the reward — accepted by most scholars
  • Making dua at their grave when visiting

DeenUp can be a practical companion here — many Muslims find it helps to set daily reminders for these prayers. The app gives you daily duas for the deceased and other moments of your day.

Supporting the Bereaved: What to Say

Offering condolences (ta'ziyah) is a Sunnah. You can say:

إِنَّ لِلَّهِ مَا أَخَذَ وَلَهُ مَا أَعْطَى وَكُلُّ شَيْءٍ عِنْدَهُ بِأَجَلٍ مُسَمًّى

Inna lillahi ma akhadha wa lahu ma a'ta, wa kullu shay'in 'indahu bi'ajalin musamma

"Verily, to Allah belongs what He has taken, and to Him belongs what He has given; and everything with Him is for an appointed time." (Sahih al-Bukhari 1284)

For more on how Islam supports us through difficulty, DeenBack's guide on spiritual care during illness and this reflection on faith through hardship offer meaningful companion reading.

Scholarly resources on Islamic grief and the afterlife can be found at Yaqeen Institute and verified hadith citations at Sunnah.com.

For readings on what Islam teaches about where our loved ones go, explore what is Jannah in Islam and also our guide on dua for the sick for supporting those still with us.

Allah commands you to seek knowledge

“My Lord, increase me in knowledge” (Surah Ta-Ha 20:114). DeenUp turns that command into a daily habit — a swipeable feed of bite-sized, scholar-approved Islamic lessons, quick quizzes, and daily streaks.

Download DeenUp on the App Store
DeenUp app — a swipeable Learn feed of bite-sized, scholar-approved Islamic lessons

Frequently Asked Questions

What do you say when someone dies in Islam?

When someone dies in Islam, Muslims recite Inna lillahi wa inna ilayhi rajiun — meaning "Truly, we belong to Allah and to Him we shall return" — from Surah Al-Baqarah (2:156). This phrase, called istirja, acknowledges Allah as the owner of all life and is a Sunnah response to any loss.

Is there a special prayer for a dying person in Islam?

Yes. For someone who is dying, those present should gently encourage them to say the Shahadah: La ilaha illa Allah. The Prophet Muhammad instructed Muslims to prompt their dying ones with this testimony (Sahih Muslim). Reciting Surah Yasin nearby is also a widely recommended Sunnah practice.

What is the dua for the deceased in Islam?

The dua for a deceased Muslim is: Allahumma ighfir lahu warhamhu wa afihi wafu anhu — "O Allah, forgive him, have mercy on him, grant him well-being, and pardon him." Change lahu to laha for a woman. This supplication is recited during Salat al-Janazah and can be said privately at any time.

What should Muslims do immediately when someone passes away?

Immediately after death, Muslims should close the eyes of the deceased, cover the body, and recite Inna lillahi wa inna ilayhi rajiun. The family then arranges ghusl (ritual washing), kafan (shrouding), Salat al-Janazah (the funeral prayer), and burial — ideally completed as soon as possible.

What is Salat al-Janazah and how is it performed?

Salat al-Janazah is the Islamic funeral prayer, a collective obligation on the Muslim community. It consists of four takbeers (Allahu Akbar), recitation of Surah Al-Fatihah, Salawat on the Prophet, and sincere dua for the deceased. There is no ruku or sujood — the prayer is performed standing.

Can Muslims make dua for a non-Muslim who has died?

Muslims are not permitted to make dua asking for the forgiveness of a non-Muslim who died without faith, as the Quran prohibits this (Surah At-Tawbah, 9:113). Muslims may still grieve, offer condolences to the bereaved family, and pray for the guidance of living non-Muslims around them.

How long is the Islamic mourning period?

The Islamic mourning period is three days for most Muslims, during which family and friends visit to offer condolences. A widow observes a mourning period of four months and ten days, as specified in Surah Al-Baqarah (2:234). Excessive wailing or lamentation is discouraged in Islamic grief practice.