The Janazah Prayer, Burial and Grief

In short
- The Janazah is a short prayer for a Muslim who has died. You stand the whole time and say Allahu akbar four times. There is no bowing and no sujud. It is a duty on the community, and its reward is like a huge mountain.
- The body is buried soon, on its right side, facing the qibla. Graves stay simple: marked, but with nothing built over them.
- Crying is allowed. Nabi ﷺ cried too. Wailing, slapping your face and tearing your clothes are not allowed.
- Comfort the family and bring them food. Relatives mourn for three days. A widow waits four months and ten days.
- Your love can still reach the one who died: dua, charity, Hajj for them, and paying their debts. Be patient. We hope to meet again in Jannah.
When someone you love dies
If someone close to you has died, may Allah have mercy on them, and give you patience and comfort.
Allah says: every soul will taste death1. He gives good news to people who are patient. When a loss comes, they say: Inna lillahi wa inna ilayhi raji'un. It means: we belong to Allah, and to Him we go back2.
Nabi ﷺ taught this dua for the moment of loss: Inna lillahi wa inna ilayhi raji'un. Allahumma'jurni fi musibati, wa akhlif li khayran minha. It means: O Allah, reward me for my loss, and give me something better after it. Umm Salamah said it when her husband died. Then Allah gave her Nabi ﷺ himself as her next husband3.
After a death, the community does four things: wash the body, wrap it in a cloth called the kafan, pray the Janazah, and bury it. Washing and wrapping are in Before and after death. This chapter covers the rest, and the time after.
Do not delay. Nabi ﷺ said: hurry with the body. If it was a good person, you are taking them to something good4.
Sources for this section
- 1(Quran 3:185)
- 2(Quran 2:156)
- 3(Muslim 918)
- 4(Bukhari 1315)
Why go to the Janazah prayer?
The Janazah (funeral prayer) is a dua that the living make together for a Muslim who has died.
- It is fard kifayah: a duty on the whole community. If some people pray it, the rest are free. If nobody prays it, everyone who knew about it is at fault.
- The reward: stay until the prayer and you get one qirat of reward. Stay until the burial and you get two. Nabi ﷺ was asked what two qirats are. He said: like two huge mountains5.
- Being there helps them. If forty Muslims who worship only Allah pray for someone, Allah accepts their prayer for that person6. So go, even if you hardly knew the person.
- Women may pray it too. Aisha had the body of Sa'd ibn Abi Waqqas brought into the masjid so she could pray for him7.
Sources for this section
- 5(Bukhari 1325)
- 6(Muslim 948)
- 7(Muslim 973)
What do you need to know before the prayer?
- You need wudu, and you face the qibla, like any salah. There is no adhan and no iqamah.
- The body lies in front of the imam, side on to the qibla. The people stand in straight rows behind him.
- In the masjid or outside? Nabi ﷺ prayed a Janazah in the masjid8. He often prayed it at an open prayer ground outside. Shafi'is and Hanbalis say both are fine. Hanafis and Malikis prefer outside the masjid. Do what your masjid does.
- Times to avoid. Nabi ﷺ told us not to pray or bury our dead while the sun is rising, when it is at its highest point, or while it is setting9.
- Who leads? Usually the family asks the masjid imam, or a close male relative leads. Shafi'is put the closest male relative first. Malikis and Hanbalis put first the person the one who died named in their will.
Where does the imam stand?
Anas stood by the head of a man and the middle of a woman. He said Nabi ﷺ did the same1011. Nabi ﷺ stood at the middle of a woman who died giving birth12. What each school says:
| School | For a man | For a woman |
|---|---|---|
| Hanafi | At the chest | At the chest |
| Maliki | At the middle | At the shoulders |
| Shafi'i | At the head | At the hips |
| Hanbali | At the chest | At the middle |
This is only about what is best. The prayer counts wherever the imam stands.
Sources for this section
- 8(Muslim 973)
- 9(Muslim 831)
- 10(Abu Dawud 3194)
- 11(Tirmidhi 1034)
- 12(Bukhari 1332)
How do you pray the Janazah?
You stand the whole time. There is no ruku (bowing) and no sujud (forehead on the ground). You say Allahu akbar four times. Each one is called a takbir. Nabi ﷺ said four takbirs when he prayed for An-Najashi13. Make the intention in your heart to pray for this person. Then:
| Takbir | What you say after it |
|---|---|
| 1st | Al-Fatiha. Ibn Abbas recited it in the Janazah and said: know that this is the sunnah14. |
| 2nd | Salawat on Nabi ﷺ (blessings on him), the same words you say after the tashahhud in salah15. |
| 3rd | Dua for the person who died16. |
| 4th | Pause for a moment, or make a short dua. Then end with the salam. |
Where the schools do not agree
- Hanafis: after the first takbir, say the thana (Subhanakallahumma, the opening praise), not Al-Fatiha. Raise your hands only at the first takbir.
- Malikis: no Al-Fatiha. Make dua after every takbir, starting with praise of Allah and salawat. Raise your hands only at the first takbir.
- Shafi'is and Hanbalis: as in the table. Raise your hands with every takbir.
- Say everything quietly. Only the imam says the takbirs and salam out loud. Follow your imam.
The dua for the person who died
Nabi ﷺ said: make your dua for them sincere17. Here is one of his duas:
- Allahummaghfir lahu warhamhu, wa afihi wa'fu anhu. It means: O Allah, forgive him, have mercy on him, give him peace and pardon him. The full dua goes on to ask for a wide grave, a better home, and safety from the Fire18.
- For a woman, say laha and -ha instead of lahu and -hu. Do not know the Arabic yet? A sincere dua in your own language is fine.
How do you end?
Say Assalamu alaykum wa rahmatullah. Hanafis and Shafi'is say it twice, to the right and then the left. Malikis and Hanbalis say it once, to the right.
Sources for this section
- 13(Bukhari 1245)
- 14(Bukhari 1335)
- 15(Bukhari 6357)
- 16(Muslim 963)
- 17(Abu Dawud 3199)
- 18(Muslim 963)
What if you come late, miss it, or are far away?
If you come late
- Hanafis and Malikis: wait for the imam's next Allahu akbar and join with it. Shafi'is and Hanbalis: join straight away.
- After the imam's salam, make up the takbirs you missed, then say salam. If the body is being lifted, say them quickly.
Praying at the grave
A person who used to clean the masjid died, and nobody told Nabi ﷺ. When he found out, he said: show me the grave. Then he prayed the Janazah there19.
- Shafi'is and Hanbalis: if you missed the Janazah, you may pray it at the grave.
- Hanafis and Malikis: only if the person was buried with no Janazah at all.
Praying from far away (ghaib)
When An-Najashi (the king of Abyssinia) died there, Nabi ﷺ lined the people up in Madinah and prayed for him with four takbirs20.
- Shafi'is and Hanbalis allow this for someone who died in another place.
- Hanafis and Malikis say it was only for An-Najashi.
- Some scholars take a middle view: pray it if nobody prayed for the person where they died.
Sources for this section
- 19(Bukhari 1337)
- 20(Bukhari 1333)
What about a child, a lost baby, or someone who took their own life?
A child
Nabi ﷺ said: the child is prayed for21. For a child, the dua is for the parents, asking for forgiveness and mercy for them22. Scholars say it is good to say: O Allah, make this child go ahead of us and wait for us, and make them a reward for us.
A baby lost during pregnancy
Nabi ﷺ said a baby lost in miscarriage is prayed for23. Scholars do not agree on when:
- Hanafis, Malikis and Shafi'is: pray the Janazah if the baby showed a sign of life, like a cry or a breath.
- Hanbalis: pray for any baby lost after four months of pregnancy, even with no sign of life.
- A baby whose body had taken shape is wrapped and buried with respect. Many scholars say it is good to give the baby a name.
Someone who took their own life
This is one of the hardest losses. Taking your own life is a major sin. But the person is still a Muslim, and the community still prays the Janazah for them. This is the view of most scholars.
- Once, Nabi ﷺ did not pray for such a man himself24. Scholars explain this was a warning to others, and other people still prayed. Some say the main imam may hold back for the same reason.
- Nabi ﷺ made dua for a man who harmed himself and died: O Allah, forgive his hands too25.
- Many people who do this are very ill or in deep pain. Only Allah judges. Pray for them, and do not let anyone shame the family.
Sources for this section
- 21(Tirmidhi 1031)
- 22(Abu Dawud 3180)
- 23(Abu Dawud 3180)
- 24(Muslim 978)
- 25(Muslim 116)
How do you carry and walk with the body?
- Walk at a quick but gentle pace26. Men carry the bier (the frame the body lies on).
- Nabi ﷺ, Abu Bakr and Umar walked in front of the body27. Hanafis prefer walking behind it. Both are fine.
- Stay quiet and think, and make dua in your heart. Many scholars say loud group chanting while walking with the body is not from the Sunnah.
- If you walk with the body, do not sit down until it is put on the ground28.
Sources for this section
- 26(Bukhari 1315)
- 27(Abu Dawud 3179)
- 28(Bukhari 1310)
How is the body buried?
The grave
- Nabi ﷺ said: dig, and make it wide29.
- Best is a lahd: a hollow dug into the qibla side of the grave, where the body is laid. Sa'd asked for a lahd like the one made for Nabi ﷺ30. A straight trench in the middle is also fine.
Lowering the body
- Men lower the body into the grave, even for a woman31. Usually these are close relatives.
- The body goes in from the foot end of the grave. A Companion did this and said: this is the sunnah32.
- The person lowering it says: Bismillahi wa ala sunnati rasulillah. It means: in the name of Allah, and on the way of His Messenger33.
- Lay the body on its right side, facing the qibla. All scholars agree on this. Untie the knots of the kafan. Close the hollow with bricks or boards. Then fill in the earth.
Three handfuls of earth, and dua
- Nabi ﷺ threw three handfuls of earth into a grave, from the head end34. It is good for everyone there to do the same.
- After a burial, he would stand at the grave and say: ask forgiveness for your brother, and ask Allah to keep him firm, because he is being questioned now35. So stay a little while. Each person makes dua quietly: Allahummaghfir lahu, Allahumma thabbithu. It means: O Allah, forgive him. O Allah, keep him firm.
Mark the grave, but do not build on it
- Nabi ﷺ put a stone at the head of Uthman ibn Maz'un's grave. He said: so I know the grave of my brother36. A simple marker is fine. The grave is raised a little, about a hand span.
- He forbade plastering graves, sitting on them, and building over them37. He also warned against turning graves into places of prayer38.
Sources for this section
- 29(Abu Dawud 3215)
- 30(Muslim 966)
- 31(Bukhari 1285)
- 32(Abu Dawud 3211)
- 33(Abu Dawud 3213)
- 34(Ibn Majah 1565)
- 35(Abu Dawud 3221)
- 36(Abu Dawud 3206)
- 37(Muslim 970)
- 38(Bukhari 1330)
How do you visit a graveyard?
Nabi ﷺ said: visit graves39, because they remind you of the Hereafter40. When you enter a graveyard, say41:
Assalamu alaykum ahlad-diyari minal-mu'minina wal-muslimin, wa inna in sha Allahu bikum lalahiqun. As'alullaha lana wa lakumul-afiyah.
It means: peace be on you, believers and Muslims who live here. We will join you, if Allah wills. I ask Allah to keep us and you safe and well.
- Make dua for them, and remember that you will die too.
- Do not sit or step on graves. Nabi ﷺ said sitting on a burning coal would be better42.
- Ask Allah, not the dead. Do not ask the person in the grave for help, make promises to them, or walk around graves in worship.
- Can women visit? Scholars do not agree. Many allow it now and then, calmly, because Nabi ﷺ taught Aisha what to say there43. Others say it is better to avoid it. One hadith warns women who visit graves very often44.
Sources for this section
- 39(Muslim 977)
- 40(Ibn Majah 1569)
- 41(Muslim 975)
- 42(Muslim 971)
- 43(Muslim 974)
- 44(Tirmidhi 1056)
How do you comfort the family?
Comforting the family is called ta'ziyah. When a believer comforts a brother in his loss, Allah will dress him in clothes of honor on the Day of Judgement45.
What to say
Nabi ﷺ sent these words to his daughter when she was grieving46: Inna lillahi ma akhadha, wa lahu ma a'ta, wa kullu shay'in indahu bi ajalin musamma, faltasbir waltahtasib. It means: what Allah took was His, and what He gave was His. Everything with Him has a set time. So be patient, and hope for the reward.
- Or say, in any language: may Allah make your reward great, give you patience, and forgive the one you lost.
- Keep it short and kind. Being there matters more than words.
- Most scholars say you comfort the family in the first three days. If you were away or heard late, do it when you can.
Bring them food
When Ja'far died, Nabi ﷺ said: make food for the family of Ja'far. Something has happened to them that keeps them busy47. So neighbors and relatives feed the family. The family does not feed the guests.
Sources for this section
- 45(Ibn Majah 1601)
- 46(Bukhari 1284)
- 47(Abu Dawud 3132)
How do you deal with grief?
Crying is allowed
When his baby son Ibrahim was dying, Nabi ﷺ cried. When asked about it, he said: this is mercy. Then he said: the eyes cry and the heart is sad, but we only say what pleases our Lord. O Ibrahim, we are sad to lose you48. Tears do not mean weak faith. They are love.
What is not allowed
- Nabi ﷺ said: he is not one of us who slaps his cheeks, tears his clothes, and cries out like people did before Islam49.
- Do not say angry words against what Allah has decided.
Patience and its reward
- Nabi ﷺ said: real patience is at the first shock50. Patience does not mean you feel no sadness. It means you do not turn away from Allah.
- Allah says: people who are patient will get their reward without limit51.
- Parents who lose a child: Nabi ﷺ said that parents whose young children die will be taken into Jannah by Allah's mercy52, even if two children die53. If the parent praises Allah, Allah says: build a house in Jannah for My servant, and call it the House of Praise54.
We hope to meet again
Allah says believers enter Jannah with the good people among their parents, husbands and wives, and children55. Nabi ﷺ said: a person will be with those they love56. And at the graves he said: we will join you, if Allah wills57.
How long do you mourn?
- For a relative, outward mourning lasts up to three days. Nabi ﷺ allowed no more than three days, except for a husband58.
- Outward mourning means no dressing up, no perfume and no celebrations. The sadness in your heart can last much longer. That is normal.
A widow
A woman whose husband dies waits four months and ten days59. If she is pregnant, the waiting ends when the baby is born60. This waiting time is called iddah. She stays in her home at night. She does not wear perfume, make-up, jewelry or dressy clothes61. She may go out for things she needs, like work or the doctor. The details are in the chapter Iddah: the waiting time, later in this guide.
Sources for this section
- 48(Bukhari 1303)
- 49(Bukhari 1294)
- 50(Bukhari 1283)
- 51(Quran 39:10)
- 52(Bukhari 1248)
- 53(Bukhari 101)
- 54(Tirmidhi 1021)
- 55(Quran 13:23)
- 56(Bukhari 6168)
- 57(Muslim 975)
- 58(Bukhari 1280)
- 59(Quran 2:234)
- 60(Quran 65:4)
- 61(Bukhari 5342)
What can you do for the one who died?
Nabi ﷺ said: when a person dies, their good deeds stop, except three: a charity that keeps on giving, useful knowledge they left, and a good child who makes dua for them62. You can also give them these gifts:
- Dua. This is the best gift. Allah praises people who say: our Lord, forgive us and our brothers who believed before us63.
- Charity. A man said: my mother died suddenly. If I give charity for her, will she get the reward? Nabi ﷺ said yes64.
- Hajj for them. A woman's mother had promised to do Hajj but died first. Nabi ﷺ said: do Hajj for her65. Most scholars say do your own Hajj first.
- Pay their debts, and quickly. A believer's soul is held back by its debt until it is paid66. Pay the debts from what they left, before the heirs share it. Family may also pay67.
Can you read Quran for them?
Scholars do not agree on whether the reward reaches the dead. Hanafis and Hanbalis say it does. The early Malikis and Shafi'is say it does not. Many later Shafi'is say it does if you ask Allah to give them the reward. So you may read Quran for them if you wish. You do not have to. All scholars agree that dua and charity reach them.
Sources for this section
- 62(Muslim 1631)
- 63(Quran 59:10)
- 64(Bukhari 1388)
- 65(Bukhari 1852)
- 66(Tirmidhi 1078)
- 67(Bukhari 2289)
Which customs are not from the Sunnah?
Many customs have grown up around death. People mean well. But many scholars say these are not from the Sunnah:
- Fixed gatherings on set days, like the third, seventh or fortieth day, or every year.
- The grieving family cooking for guests. A Companion said they used to count gathering at the family's home, with the family making food, as a kind of wailing68.
- Building on graves, plastering them, or lighting candles on them69.
- Asking the dead for help, or making promises at graves. Dua is only to Allah.
If your family does some of these, be gentle. A time of grief is not the time to argue. Do what is right yourself, and explain kindly later.
Sources for this section
- 68(Ibn Majah 1612)
- 69(Muslim 970)
Common questions
- Can women go to the burial?
- Everyone agrees women may pray the Janazah. Going to the graveyard is where scholars do not agree. Umm Atiyyah said women were told not to follow funerals, but it was not made strict70. Hanafis say women should not go. Shafi'is and Hanbalis say it is better to avoid, but it is not forbidden. Malikis allow an older woman to go. They allow a younger woman for a close relative, like a parent, child, husband or brother. If you go, stay calm, without wailing.
- My parent who was not Muslim died. May I go to the funeral?
- Yes. Be with your family and help. When Abu Talib died, Nabi ﷺ told Ali: go and bury your father71. You do not join in another religion's worship. The Janazah prayer and asking Allah to forgive are only for Muslims72. Your love and grief are natural.
- The family wants a big gathering on day 3 or day 40.
- As above, many scholars say fixed days are not from the Sunnah, and the grieving family should not pay for it. If the family holds one anyway, you may go to comfort them and make dua. Just do not treat the day as a religious duty. Keep the peace.
- I missed the Janazah. Can I pray it on my own later?
- Shafi'is and Hanbalis say you may pray it at the grave73. Hanafis and Malikis say only if no Janazah was prayed at all. In every school, your dua for them reaches them, at any time.
- My father died abroad and I could not travel.
- Shafi'is and Hanbalis allow praying the Janazah from far away, as Nabi ﷺ prayed for An-Najashi74. Hanafis and Malikis do not. Ask your local masjid. Your dua, your charity and paying his debts all reach him.
Sources for this section
- 70(Bukhari 1278)
- 71(Abu Dawud 3214)
- 72(Muslim 976)
- 73(Bukhari 1337)
- 74(Bukhari 1333)
This guide teaches what most scholars hold and notes where the four schools differ. For your own situation, ask a scholar you trust or your local masjid.