- Published on
Dua for Death in Islam: Prayers When Someone Passes Away
- Authors

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

Death comes without announcement. One moment someone is present — their voice familiar, their face known — and then they are gone. In that sudden silence, Islam gives us something profoundly practical: words to say, duas to make, and a framework for turning grief into worship. These are not empty rituals. They are the Prophet's ﷺ guidance for one of the hardest moments in a human life.
What Is the Dua for Death in Islam?
The primary dua for death in Islam is the verse from Surah Al-Baqarah, 2:156 — recited immediately upon hearing that someone has died. It is called inna lillahi and declares the most fundamental truth of existence: that every soul belongs to Allah and will return to Him. This phrase, combined with a personal dua for patience and reward (Sahih Muslim 918), forms the complete Islamic response to the news of death. It acknowledges loss while affirming submission to Allah's decree.
The First Words: Inna Lillahi Wa Inna Ilayhi Raji'un
When a Muslim receives news of a death, the first words from the heart are:
إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ
"Indeed, to Allah we belong and to Him we shall return." — (Surah Al-Baqarah, 2:156)
This is not a mere formality. These words (inna lillahi) are the Quran's own description of the patient believers, those who respond to calamity with surrender rather than despair. Allah describes them in the very next verse as receiving blessings, mercy, and guidance from their Lord (Surah Al-Baqarah, 2:157).
The Prophet ﷺ then taught an extension — a personal dua for the one receiving the loss:
اللَّهُمَّ أَجِرْنِي فِي مُصِيبَتِي وَاخْلُفْ لِي خَيْرًا مِنْهَا
"O Allah, reward me in my calamity and replace it for me with something better." (Allahumma ajirni fi musibati wakhluf li khayran minha) — (Sahih Muslim 918)
Umm Salamah reported that when her husband Abu Salamah died, she recited this dua — and Allah replaced him with someone better, the Prophet ﷺ himself, whom she later married. The dua is not just for consolation; it is a genuine request that Allah turn every loss into an opening.
Dua for the Deceased: What to Say for Someone Who Has Died
Once the grief of the initial news is acknowledged, Islam turns attention toward the deceased. The most comprehensive dua for the person who has passed is the one recited in the janazah prayer:
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ
"O Allah, forgive him, have mercy on him, keep him well, and pardon him." (Allahummaghfir lahu warhamhu wa'afihi wa'fu anhu) — (Sahih Muslim 963)
For a woman, lahu (him) is replaced with laha (her). This dua asks for four distinct gifts for the deceased: forgiveness, mercy, wellbeing in the grave, and complete pardon. Ibn al-Qayyim called it one of the most complete petitions a servant can make for another.
You do not need to be in a formal prayer to say this dua. It can be recited any time, in any state, on behalf of any Muslim who has died — a parent, a friend, a community member you barely knew.
Dua When Visiting a Grave
Visiting graves is a recommended Sunnah act in Islam — the Prophet ﷺ encouraged it because it reminds the living of their own mortality. When entering a cemetery, the greeting is:
السَّلامُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ وَإِنَّا إِنْ شَاءَ اللَّهُ بِكُمْ لَاحِقُونَ
"Peace be upon you, O people of the graves, from among the believers and Muslims. Indeed, if Allah wills, we will join you." — (Sahih Muslim 975)
That final phrase — "we will join you" — is the spiritual heart of grave visitation. It is an acknowledgment that we are all in transit. The person buried is not in a foreign place; they are in the destination we are all heading toward.
A Reference Table: Duas for Every Death-Related Situation
| Situation | Dua to Recite | Source |
|---|---|---|
| Hearing news of a death | Inna lillahi wa inna ilayhi raji'un | Quran 2:156 |
| Personal dua after loss | Allahumma ajirni fi musibati wakhluf li khayran minha | Sahih Muslim 918 |
| Janazah (funeral) prayer | Allahummaghfir lahu warhamhu wa'afihi wa'fu anhu | Sahih Muslim 963 |
| Entering a graveyard | As-salamu alaykum ahl al-diyar min al-mu'mineen... | Sahih Muslim 975 |
| Guiding the dying (talqin) | La ilaha illallah (gently prompting) | Sahih Muslim 916 |
| Ongoing dua for deceased parents | Rabbighfir li wali walidayya | Quran 14:41 |
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
Guiding the Dying: What to Do When Someone Is Passing
When a Muslim is in their final moments, the Prophet ﷺ gave a specific instruction: "Instruct your dying people to say La ilaha illallah." (Sahih Muslim 916) This is called talqin — a gentle prompting, not a demand. The one sitting by the dying person softly recites the shahadah, giving the dying person a moment to repeat it.
This is why the last words a believer hopes to say before death are: لَا إِلَهَ إِلَّا اللَّهُ — "There is no god but Allah." The Prophet ﷺ said: "Whoever's last words are La ilaha illallah will enter Paradise." (Sunan Abu Dawud 3116)
For those present at a death, the role is one of quiet support — reciting these words softly, making dua, and helping the dying person feel surrounded by peace, not panic.
Making Dua for the Dead: How and When
Many Muslims ask whether their duas actually reach a deceased person. The Quran and authentic Sunnah confirm: yes, they do. The Prophet ﷺ listed righteous children making dua among the three deeds that continue to benefit a person after death (Sahih Muslim 1631).
There is no time limit on dua for the deceased. You can make dua for your parents, your grandparents, friends, or any Muslim who has passed — even decades after their death. The dua does not expire, and Allah's mercy has no ceiling.
The most powerful ongoing acts for the deceased include:
- Regular dua, especially in sujud and at the times when Allah draws near
- Giving sadaqah jariyah on their behalf
- Performing umrah or hajj on their behalf (with a scholarly opinion confirming this is valid)
- Reciting the Quran and dedicating the reward to them
For guidance on praying for those who have passed, see dua for parents who passed away. For the full Islamic framework of death and what comes after, the Islamic perspective on death and preparing for the Hereafter offer essential context. For the formal ritual of the funeral, Islamic funeral rituals covers each stage step by step.
Remembering Death as a Daily Spiritual Practice
The Prophet ﷺ said: "Increase your remembrance of the destroyer of pleasures — death." (Sunan al-Tirmidhi 2307) This is not morbid advice. It is liberation. The person who regularly remembers death is freed from the petty anxieties of this world because they understand what truly matters.
The Arabic phrase for this practice is dhikr al-mawt — the remembrance of death. When you make dua for deceased relatives, when you recite inna lillahi upon hearing sad news, when you visit a grave — you are practicing dhikr al-mawt. You are orienting your heart toward the only certainty in life, and that orientation makes every other dua clearer, more urgent, and more sincere.
For a broader study of how to connect death-remembrance to a living faith, what is the Day of Judgment in Islam provides the theological grounding. The Quran.com commentary on Surah Al-Baqarah 2:156 unpacks the inna lillahi verse in full. For the hadiths on janazah prayer duas, Sunnah.com's collection on Sahih Muslim's Book of Prayer on Dead provides the original Arabic and verified chains.
For broader perspectives on Islamic grief and healing, DeenBack's piece on spiritual care during illness and DemiManifest's reflection on remembering death in Islam are both worth reading alongside this guide.
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
Frequently Asked Questions
What do Muslims say when someone dies?
When a Muslim hears of a death, they immediately recite Inna lillahi wa inna ilayhi raji'un (إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ) — 'Indeed, to Allah we belong and to Him we shall return' (Surah Al-Baqarah, 2:156). This is followed by a personal dua for patience and spiritual reward (Sahih Muslim 918).
What is the dua for the deceased in the janazah prayer?
In the janazah (funeral) prayer, a beloved dua for the deceased is: Allahummaghfir lahu warhamhu wa'afihi wa'fu anhu — 'O Allah, forgive him, have mercy on him, protect him, and pardon him' (Sahih Muslim 963). For a woman, substitute lahu with laha. This is one of the most complete duas for the dead.
Can I make dua for a non-Muslim who has died?
According to scholarly consensus, Muslims may not ask Allah for forgiveness for a confirmed non-believer who died outside of Islam, based on Surah Al-Tawbah, 9:113. However, you may make general duas of mercy during their lifetime or grieve for them naturally. Scholars allow supplicating for a non-Muslim to be guided before death.
What is the dua when visiting a grave?
The Prophet ﷺ taught: As-salamu alaykum ahl al-diyar min al-mu'mineen wal-muslimeen (Peace be upon you, O people of the graves, from among the believers and Muslims) (Sahih Muslim 975). It is a greeting of humility — a reminder that the visitor will one day join those being greeted.
How do you guide a dying person in Islam?
The Prophet ﷺ instructed: 'Instruct your dying people to say La ilaha illallah' (Sahih Muslim 916). This is called talqin — a gentle reminder to the dying person to make the declaration of faith their last words. It should be said softly without pressuring the person; once they repeat it, do not repeat it unless they speak after.
Can I still make dua for my deceased parents?
Yes — dua for deceased parents is one of the most valuable acts a child can offer. The Prophet ﷺ mentioned that three things benefit a person after death: ongoing charity (sadaqah jariyah), beneficial knowledge they left, and a righteous child who makes dua for them (Sahih Muslim 1631). Your dua continues to reach them.
Is it allowed to cry when someone dies in Islam?
Yes — weeping over the deceased is permitted and natural. The Prophet ﷺ wept at the death of his son Ibrahim and at the passing of his companions. What Islam forbids is wailing (niyahah) — tearing clothes, striking the face, or uttering words of despair. Quiet tears of grief are a mercy, not a sin.