In Islam, death is not the end but a move from one stage of life to the next. At death, angels take the soul from the body. It then waits in an in-between state called the barzakh, is questioned in the grave, and on the Day of Resurrection is raised, judged by God, and sent to Paradise or Hell.
Medicine describes what happens to the body when the heart stops. The Quran and the teachings of the Prophet Muhammad (peace be upon him) describe what happens to the person. This guide follows that journey stage by stage, then covers what Muslims do when someone dies and how the faith comforts the grieving.
Key takeaways
- The Quran states that "every soul will taste death" and that full reward comes only on the Day of Resurrection (Quran 3:185).
- A detailed hadith narrated by al-Bara' ibn 'Azib, recorded in Sunan Abi Dawud 4753 and Musnad Ahmad 18534, describes angels coming to take the soul and the questioning that follows in the grave.
- The barzakh, a "barrier" between death and resurrection, is named in Quran 23:100.
- Sahih al-Bukhari 1338 reports that two angels come to the buried person and ask about their faith; Jami' at-Tirmidhi 1071 names them Munkar and Nakir.
- According to Sahih Muslim 1631, a person's deeds end at death except for three: ongoing charity, beneficial knowledge, and a righteous child who prays for them.
What happens when you die, according to Islam?
Islam teaches that every human being has a body and a soul (ruh). Death is the moment the soul leaves the body by God's command. The body returns to the earth, but the soul continues, conscious and aware, until it is reunited with a body at the resurrection.
The Quran treats death as certain and universal, something no one can delay or avoid:
Every soul will taste death, and you will only be given your [full] compensation on the Day of Resurrection. So he who is drawn away from the Fire and admitted to Paradise has attained [his desire]. And what is the life of this world except the enjoyment of delusion.
Muslims see this life as a test, and death as the point where the test ends. One of the names of God, Al-Mumit, means "the Taker of life," paired with Al-Muhyi, "the Giver of life."
How does the soul leave the body?
The fullest description comes from a long hadith narrated by the companion al-Bara' ibn 'Azib. He was at a funeral with the Prophet, and while the grave was being dug, the Prophet sat down, scratched the ground with a stick and twice urged the people to seek God's protection from the punishment of the grave. He then described the moment of death. The narration appears in Sunan Abi Dawud 4753 (graded sahih by al-Albani) and in a longer form in Musnad Ahmad 18534.
The death of a believer
According to the hadith, when a believer is about to leave this world, angels with bright faces come down from heaven carrying a shroud and perfume from Paradise. The Angel of Death sits by the person's head and calls the "good soul" to come out to God's forgiveness and pleasure. The soul leaves gently, and the angels carry it upward, where it is welcomed by name.
The death of a disbeliever
The same hadith describes the opposite for a soul that rejected God. Angels with dark faces come with rough cloth, the soul is called out to God's anger, and it is pulled out harshly and turned away at the gates of heaven.
The Quran points to this moment, which those around the dying cannot see:
And Our angels are nearer to him than you, but you do not see -
That passage near the end of Surah al-Waqiah is a frequent subject of reflection, and our guide to Surah al-Waqiah covers its picture of the three groups of people on the Last Day. The Quran also says the soul itself is something human knowledge cannot fully grasp (Quran 17:85).
What is the barzakh?
Barzakh (barzakh, برزخ) literally means a barrier or partition. In Islamic belief, it is the stage between death and the Day of Resurrection. The word appears in a verse about a person who begs, at the moment of death, for a second chance:
That I might do righteousness in that which I left behind." No! It is only a word he is saying; and behind them is a barrier until the Day they are resurrected.
Scholars describe the barzakh as a real state of existence, though different from life on earth. Time and experience there are not like ours. The Quran speaks of martyrs who are "alive with their Lord, receiving provision" (Quran 3:169), and of Pharaoh's people being "exposed" to the Fire "morning and evening" before the Hour arrives (Quran 40:46). Classical scholars took these verses as evidence that the soul experiences comfort or distress before the final judgment.
What is the questioning in the grave?
After burial, the Prophet taught, the person is questioned. Sahih al-Bukhari 1338 reports that once the mourners leave, and the dead person can still hear their footsteps, two angels come, sit the person up and ask what they used to say about the Prophet Muhammad. The hadith of al-Bara' gives the three questions in full:
- Who is your Lord?
- What is your religion?
- Who is this man who was sent among you?
The believer answers that their Lord is Allah, their religion is Islam, and the man is God's Messenger. Jami' at-Tirmidhi 1071, graded hasan, names the two angels Munkar and Nakir. The Quran promises that "Allah keeps firm those who believe, with the firm word, in worldly life and in the Hereafter" (Quran 14:27), a verse the Prophet linked to the questioning in the grave (Sahih al-Bukhari 1369).
Muslims understand that these answers cannot simply be memorized; they reflect what a person truly believed and lived by. This is why the Prophet often sought God's protection from the punishment of the grave, and why many Muslims recite Surah al-Mulk every night. Our article on Surah al-Mulk explains the narrations about its connection to the grave and their grading.
The resurrection and the Day of Judgment
The barzakh ends when the Horn is blown. The Quran describes two blasts: one at which everything living dies, and a second at which all people rise:
And the Horn will be blown, and whoever is in the heavens and whoever is on the earth will fall dead except whom Allah wills. Then it will be blown again, and at once they will be standing, looking on.
Islam teaches a bodily resurrection. The Quran answers people who doubted that bones could live again by pointing to the first creation: the One who made people from nothing can easily remake them (Quran 22:5). God's name Al-Ba'ith, "the Resurrector," reflects this belief.
People are then gathered for judgment. Every deed, however small, is weighed:
So whoever does an atom's weight of good will see it,
The signs that come before this Day, from the minor ones already seen to the ten major ones, are covered in our guide to the signs of the Day of Judgement. After judgment comes one of two final homes: Jannah, the Garden of Paradise, or Jahannam, Hell. Our guide to Jannah in Islam describes what the Quran says Paradise is like.
Stages after death at a glance
| Stage | What happens | Main source |
|---|---|---|
| Death | Angels take the soul from the body | Quran 32:11; Musnad Ahmad 18534 |
| Barzakh | The soul waits between death and resurrection | Quran 23:100 |
| The grave | Two angels question the person about their faith | Sahih al-Bukhari 1338; Tirmidhi 1071 |
| Resurrection | The Horn is blown and all people rise | Quran 39:68 |
| Judgment | Deeds are weighed with complete fairness | Quran 99:7-8 |
| Final abode | Paradise or Hell | Quran 3:185 |
What do Muslims do when someone dies?
Saying "Inna lillahi wa inna ilayhi raji'un"
When Muslims hear of a death, they say Inna lillahi wa inna ilayhi raji'un: "Indeed we belong to Allah, and indeed to Him we will return." The words come from Quran 2:156, which praises those who say them when disaster strikes.
Sahih Muslim 918 adds a short prayer to these words. Umm Salamah reported that the Prophet taught: whoever is struck by a calamity and says this phrase, followed by Allahumma'jurni fi musibati wakhluf li khayran minha ("O Allah, reward me for my affliction and give me something better than it in exchange"), God will replace their loss with something better. She said it when her husband Abu Salamah died, and later married the Prophet.
Before death: the last words
Sahih Muslim 916 records the Prophet's instruction to gently remind the dying to say La ilaha illallah, "there is no god but Allah." Sunan Abi Dawud 3116, graded sahih, adds that whoever's last words are these will enter Paradise. The Prophet's own final words, reported by his wife Aisha in Sahih al-Bukhari 4440, were a prayer: "O Allah, forgive me, have mercy on me, and join me with the highest companions."
The funeral (janazah)
The body is washed, wrapped in a simple white shroud and buried, not cremated, as soon as practical, facing the direction of Makkah. The funeral prayer, Salat al-Janazah, is offered standing, without bowing or prostration. Sahih al-Bukhari 1325 records a large reward for those who attend the prayer and stay for the burial.
Dua for the dead
In the funeral prayer, Muslims pray for the person who has died. One of the best-known supplications is reported by 'Awf ibn Malik in Sahih Muslim 963:
Allahummaghfir lahu warhamhu, wa 'afihi wa'fu 'anhu, wa akrim nuzulahu, wa wassi' mudkhalahu.
"O Allah, forgive him and have mercy on him, give him peace and pardon him. Receive him with honor and make his grave spacious." The full hadith continues by asking God to wash the person clean of sins as a white garment is cleansed of dirt. For a woman, the pronouns change to laha and -ha.
Prayers for the dead continue long after the funeral. Sahih Muslim 1631 lists the three things whose reward continues to reach a person after death: a continuing charity (sadaqah jariyah), knowledge that benefits others, and a righteous child who prays for them. Families often build a well, fund a school or donate copies of the Quran in a loved one's name for this reason.
How does Islam comfort the grieving?
Grief is not a lack of faith in Islam. When the Prophet's infant son Ibrahim was dying, the Prophet wept. Sahih al-Bukhari 1303 records his words: the eyes shed tears and the heart grieves, but we say only what pleases our Lord.
What Islam asks is that grief stay within patience, without wailing against God's decree. Sahih al-Bukhari 1280 sets a general mourning period of three days, with a longer period of four months and ten days for a widow.
Above all, the faith offers hope of reunion: the Quran promises that believing families will be joined together in Paradise (Quran 52:21). The Prophet also taught, in Sahih al-Bukhari 6507, that whoever loves to meet God, God loves to meet them, so a believer can face death with hope rather than only fear.
Read the verses about death on Quran Universe
You can read Surah al-Waqiah, Surah al-Mulk and the passage on the barzakh in Surah al-Muminun on Quran Universe, each with Arabic text, word-by-word meaning and Tafsir Ibn Kathir. If you are new to the Quran, our guide on how to read the Quran is a good place to start.
Frequently asked questions
What happens after death in Islam?
After death, angels take the soul from the body. The person is buried and questioned in the grave by two angels about their Lord, religion and prophet. The soul then remains in the barzakh, an in-between stage, until the Day of Resurrection, when all people are raised, judged on their deeds, and enter Paradise or Hell.
What is the barzakh in Islam?
The barzakh is the stage between death and the Day of Resurrection. The word means "barrier" and appears in Quran 23:100. Scholars describe it as a real state in which the soul is conscious and experiences either comfort or distress, depending on how the person lived, until it is reunited with the body on the Day of Resurrection.
What questions are asked in the grave?
According to the hadith of al-Bara' ibn 'Azib in Sunan Abi Dawud 4753, the angels ask three questions: Who is your Lord? What is your religion? Who is this man who was sent among you? The believer answers: Allah, Islam and the Prophet Muhammad. Muslims believe only genuine faith, not memorization, allows a person to answer.
What is the dua for the dead in Islam?
A well-known dua from Sahih Muslim 963 is Allahummaghfir lahu warhamhu, wa 'afihi wa'fu 'anhu: "O Allah, forgive him, have mercy on him, give him peace and pardon him." It is said in the funeral prayer and at any time afterward. Muslims also give charity on behalf of the deceased, since its reward reaches them.
What do Muslims say when someone dies?
Muslims say Inna lillahi wa inna ilayhi raji'un, "Indeed we belong to Allah, and indeed to Him we will return," from Quran 2:156. Many add the prayer from Sahih Muslim 918 asking God to reward them for the loss and replace it with something better, and they pray "may Allah have mercy on them."
Is there a dua for a good death?
Yes. Many Muslims ask God for a good ending (husn al-khatimah). The Prophet's final prayer, recorded in Sahih al-Bukhari 4440, was "O Allah, forgive me, have mercy on me, and join me with the highest companions." Muslims also hope their last words will be "there is no god but Allah," following a sahih hadith in Sunan Abi Dawud 3116.