PrayerEnglish guideUpdated

Janazah Prayer: How to Pray Salat al-Janazah Step by Step

Learn how to pray Salat al-Janazah: the four takbirs, what to recite after each, where the imam stands, prayer in absentia, the burial and offering condolences.

DIRECT SUMMARY

What this guide covers

Salat al-Janazah is the funeral prayer offered for a Muslim who has died. It is a communal obligation: when enough people perform it, the duty is fulfilled for the whole community, and everyone who attends earns reward. It is prayed standing throughout, with four takbirs, no bowing or prostration, and a closing salam. The common pattern is praise or Al-Fatihah after the first takbir, blessings on the Prophet after the second, supplication for the deceased after the third, and the salam after the fourth. Recitations, hand-raising and the imam's position differ between the schools.

Scope: A general Sunni guide for joining a funeral prayer behind an imam. It does not cover washing and shrouding the body, burial procedure, estates or inheritance, or personal rulings on mourning, which need guidance from a local imam or scholar familiar with your school and circumstances.

Key takeaways

  • The funeral prayer is a communal obligation, and following a funeral is a right Muslims have on one another.
  • It is prayed standing, with four takbirs and a salam, without bowing, prostration or sitting.
  • What is recited after each takbir, and whether the hands are raised, differs by school; follow the imam.
  • The schools disagree about praying for someone whose body is not present.
  • Staying for the burial and supporting the bereaved belong to the same duty of care.
An empty bench under an olive tree beside a stone garden path leading to a whitewashed wall.

A calm place to remember and supplicate. The guide below explains the funeral prayer, the burial and how to support those who grieve.

AI illustration
Editorial status: Prepared by MyDeenPath Editorial with AI-assisted drafting and source checks under our published policy. Independent scholarly review is pending. It does not provide a personalised religious ruling.

What is Salat al-Janazah, and is it obligatory?

Salat al-Janazah is a prayer of intercession for a Muslim who has died, offered by the living before burial. It is a communal obligation (fard kifayah): Jordan's General Iftaa' Department describes it as a collective duty on the Muslim community, and Mathabah's explanation adds that when some members perform it, the others are released from the duty.

Sahih al-Bukhari 1240 lists following funeral processions among the rights a Muslim has on other Muslims. Sahih al-Bukhari 1325 describes a reward of one qirat for attending until the prayer and two for staying until burial, each likened to a huge mountain. Sahih Muslim 948 reports that when forty people who associate nothing with Allah pray over a Muslim, Allah accepts their intercession for that person.

Because it is a prayer, the usual conditions apply. Darul Ifta Birmingham lists purity from minor and major impurity, covering what must be covered, and facing the qibla, as for the obligatory prayers. The prayer itself is short, so arrive already in wudu rather than hurrying to make it while the rows are forming.

Sources: [24] [25] [2] [3] [4] [26]

How do you pray Salat al-Janazah step by step?

The funeral prayer is performed standing throughout, with four takbirs and a closing salam, and it has no bowing, prostration or sitting. The body is placed in front of the imam, and the congregation forms rows behind him. Sahih al-Bukhari 1333 records the Prophet lining people up in rows and saying four takbirs. Sahih Muslim 957 reports that Zayd ibn Arqam once said five, attributing it to the Prophet, but four is the practice taught in the four schools.

Make the intention to pray over the deceased who is present, then follow the imam's takbirs, reciting quietly after each one what your school teaches. The recitations differ, but the general order below is shared. If you do not yet know the recitations, still stand in the row, follow the imam's takbirs and salam, and learn the wording from your teacher afterwards.

  • Stand in a row behind the imam, in wudu and facing the qibla, and intend the funeral prayer.
  • First takbir: praise of Allah (thana) in Hanafi teaching, or Al-Fatihah in Shafi'i and Hanbali teaching.
  • Second takbir: blessings on the Prophet, as recited in the final sitting of salah.
  • Third takbir: sincere supplication for the deceased.
  • Fourth takbir: a brief supplication or pause according to your school, then the salam.

Sources: [5] [6] [25] [26] [28] [24] [29]

What do you recite after each takbir?

After the first takbir, Hanafi jurists give preference to praise of Allah (thana), while the Shafi'i and Hanbali schools recite Al-Fatihah; Sahih al-Bukhari 1335 records Ibn Abbas reciting it in a funeral prayer and saying that it is the Sunnah. In the Maliki school, according to Ibn Abi Zayd's Risala and Mathabah's summary, supplication is made after each of the four takbirs. After the second takbir, the other schools recite the blessings on the Prophet used in the final sitting of salah.

The supplication for the deceased is the heart of the prayer. Sunan Abi Dawud 3199, graded hasan by al-Albani, says to make sincere supplication for the dead. Sahih Muslim 963a preserves a supplication asking Allah to forgive the person and have mercy on them, make their grave spacious, cleanse them of faults as a white garment is cleansed, and admit them to Paradise, protected from the punishment of the grave and the Fire. Sunan Abi Dawud 3201 preserves a supplication for the living and the dead, present and absent, young and old. Darul Ifta Birmingham notes that the wording differs for a child, so ask your imam to teach it.

ElementHanafiMalikiShafi'iHanbali
After the first takbirPraise (thana)Supplication for the deceasedAl-FatihahAl-Fatihah
After the second takbirBlessings on the ProphetSupplicationBlessings on the ProphetBlessings on the Prophet
After the third takbirSupplication for the deceasedSupplicationSupplication for the deceasedSupplication for the deceased
After the fourth takbirSalamSupplication, or the salam directlyA supplication or silence, then salamA brief pause, then salam
Raising the handsFirst takbir onlyFirst takbir; raising at the others is not faultedWith every takbirWith every takbir
SalamTwo, to the right and leftOne, said quietlyTwoOne, to the right

Sources: [7] [8] [9] [10] [26] [25] [29] [24] [28]

Where does the imam stand for a male or female deceased?

The schools teach different positions, each drawing on transmitted reports. Sahih al-Bukhari 1332 records the Prophet standing at the middle of the bier of a woman who died in childbirth. Jami at-Tirmidhi 1034, graded hasan on sunnah.com, reports Anas standing level with a man's head and a woman's waist and confirming that he had seen the Prophet do so.

Hanafi teaching, as Darul Ifta Birmingham explains, places the imam level with the chest for both. The Jordanian Shafi'i fatwa gives the head of a man and the waist of a woman; an IslamWeb Hanbali summary gives the chest of a man and the waist of a woman; and Ibn Abi Zayd's Maliki Risala gives the middle of a man and the shoulders of a woman. Those praying behind simply stand in rows behind the imam.

SchoolDeceased manDeceased woman
HanafiLevel with the chestLevel with the chest
MalikiLevel with the middleLevel with the shoulders
Shafi'iLevel with the headLevel with the waist
HanbaliLevel with the chestLevel with the waist

Sources: [11] [12] [26] [24] [28] [29]

Can you pray Janazah in absentia (salat al-ghaib)?

It depends on your school. Sahih al-Bukhari 1245 reports that the Prophet announced the death of the Negus, An-Najashi, on the day he died, went out to the prayer place, lined the people up and said four takbirs, although the Negus had died far from Madinah.

The Shafi'i and Hanbali schools accept a funeral prayer for someone absent: SeekersGuidance describes it as recommended in the Shafi'i school and permitted in the Hanbali school. The Hanafi school does not regard it as valid, and Mathabah's answer explains that the Hanafi and Maliki schools treat the prayer over the Negus as specific to the Prophet. Mathabah suggests that a Hanafi or Maliki who stands behind an imam holding the other view can do so with the intention of supplication for the deceased. Avoid turning the difference into a dispute.

Praying at the grave after burial is a related question. Sahih al-Bukhari 1337 reports that the Prophet prayed at the grave of a person who used to clean the mosque, whose death he had not been told about in time. Whether others may do this, and for how long after burial, is treated differently across the schools, so ask your imam.

Sources: [13] [30] [31] [14]

What if you arrive late, or the prayer is held in a mosque?

If you arrive after the prayer has begun, join the imam. In the Hanafi school, Darul Ifta Birmingham explains that a latecomer says the takbirs they missed after the imam's salam, without the recitations that would normally follow them, and then concludes. Other schools have their own method, so learn it from your teacher before the need arises.

Funeral prayers are often held in or beside mosques, sometimes straight after a congregational prayer. Sahih Muslim 973a reports Aisha reminding people that the Prophet prayed over Suhail ibn al-Bayda in the mosque. SeekersGuidance's Maliki answer explains that the Maliki school discourages the funeral prayer inside the mosque when it can be avoided, while allowing a Maliki to join where staying out would cause problems in the community.

Sources: [27] [15] [32]

Should you attend the burial, and what is said at the grave?

Yes, if you are able. Sahih al-Bukhari 1325 gives a second qirat of reward to those who stay until the burial, and Sahih al-Bukhari 1315 urges hurrying with the bier. Walk calmly, help to carry the bier if asked, and follow the instructions of those managing the burial, which in many countries also involves cemetery rules and legal procedures.

After the burial, Sunan Abi Dawud 3221, graded sahih by al-Albani, reports that the Prophet stayed at the grave and told those present to seek forgiveness for their brother and to ask that he be made firm, because he was now being questioned. A short, sincere supplication at the graveside follows this example, and Qur'an 59:10 teaches believers to ask forgiveness for those who preceded them in faith.

Women's attendance at the procession and burial is discussed differently among scholars. Umm Atiyyah's report in Sahih al-Bukhari 1278 says that women were discouraged from following funeral processions, but not strictly. Local practice and school positions vary, so ask your community's imam about the arrangements.

Sources: [3] [16] [17] [18]

How do you offer condolences (ta'ziyah) to a bereaved family?

Offer brief, sincere words, practical help and supplication. Sahih al-Bukhari 1284 records the message the Prophet sent to his grieving daughter: whatever Allah takes and whatever He gives belongs to Him, everything with Him has a fixed term, so she should be patient and hope for reward. Qur'an 2:156 gives the words of the patient in affliction, commonly said as Inna lillahi wa inna ilayhi raji'un, meaning we belong to Allah and to Him we return.

Grief is not a lack of faith. Sahih al-Bukhari 1303 describes the Prophet weeping at the death of his infant son Ibrahim and saying that the eyes shed tears and the heart grieves, yet only what pleases the Lord is said. What is condemned is wailing, slapping the cheeks and tearing clothes, as Sahih al-Bukhari 1294 states.

Practical care matters. Sunan Abi Dawud 3132, graded hasan by al-Albani, records the instruction to prepare food for the family of Ja'far because their loss occupied them. Sahih al-Bukhari 1280 limits a woman's formal mourning for a relative to three days, except for a widow, whose period is four months and ten days; ask a scholar about the details of that waiting period.

  • Keep visits short and say a brief supplication for the deceased and the family.
  • Offer specific help: a meal, transport, childcare or paperwork.
  • Avoid speculating about the cause of death or the person's standing with Allah.
  • Remember the family after the first days, when visitors have gone home.

Sources: [19] [1] [20] [21] [22] [23]

VERIFIED QURAN CORPUS

Quran passages in this guide

Read each complete verse below in Arabic and the identified English interpretation. Follow the context link before drawing conclusions from an isolated verse.

Al-Baqara 2:155. Trial through fear, hunger and the loss of wealth and lives, with good news for the patient.

2:155Page 24 · Juz 2

وَلَنَبْلُوَنَّكُم بِشَىْءٍ مِّنَ ٱلْخَوْفِ وَٱلْجُوعِ وَنَقْصٍ مِّنَ ٱلْأَمْوَٰلِ وَٱلْأَنفُسِ وَٱلثَّمَرَٰتِ ۗ وَبَشِّرِ ٱلصَّـٰبِرِينَ ۝١٥٥

And surely We shall try you with something of fear and hunger, and loss of wealth and lives and crops; but give glad tidings to the steadfast,

Marmaduke PickthallRead in context

Al-Baqara 2:156. The words of the patient in affliction: we belong to Allah and to Him we return.

2:156Page 24 · Juz 2

ٱلَّذِينَ إِذَآ أَصَـٰبَتْهُم مُّصِيبَةٌ قَالُوٓا۟ إِنَّا لِلَّهِ وَإِنَّآ إِلَيْهِ رَٰجِعُونَ ۝١٥٦

Who say, when a misfortune striketh them: Lo! we are Allah's and lo! unto Him we are returning.

Marmaduke PickthallRead in context

Al-Baqara 2:157. Blessings and mercy from their Lord for those who respond with patience.

2:157Page 24 · Juz 2

أُو۟لَـٰٓئِكَ عَلَيْهِمْ صَلَوَٰتٌ مِّن رَّبِّهِمْ وَرَحْمَةٌ ۖ وَأُو۟لَـٰٓئِكَ هُمُ ٱلْمُهْتَدُونَ ۝١٥٧

Such are they on whom are blessings from their Lord, and mercy. Such are the rightly guided.

Marmaduke PickthallRead in context

Aal-i-Imraan 3:185. Every soul will taste death, and full recompense comes on the Day of Resurrection.

3:185Page 74 · Juz 4

كُلُّ نَفْسٍ ذَآئِقَةُ ٱلْمَوْتِ ۗ وَإِنَّمَا تُوَفَّوْنَ أُجُورَكُمْ يَوْمَ ٱلْقِيَـٰمَةِ ۖ فَمَن زُحْزِحَ عَنِ ٱلنَّارِ وَأُدْخِلَ ٱلْجَنَّةَ فَقَدْ فَازَ ۗ وَمَا ٱلْحَيَوٰةُ ٱلدُّنْيَآ إِلَّا مَتَـٰعُ ٱلْغُرُورِ ۝١٨٥

Every soul will taste of death. And ye will be paid on the Day of Resurrection only that which ye have fairly earned. Whoso is removed from the Fire and is made to enter paradise, he indeed is triumphant. The life of this world is but comfort of illusion.

Marmaduke PickthallRead in context

Al-Hashr 59:10. Believers asking forgiveness for those who preceded them in faith.

59:10Page 547 · Juz 28

وَٱلَّذِينَ جَآءُو مِنۢ بَعْدِهِمْ يَقُولُونَ رَبَّنَا ٱغْفِرْ لَنَا وَلِإِخْوَٰنِنَا ٱلَّذِينَ سَبَقُونَا بِٱلْإِيمَـٰنِ وَلَا تَجْعَلْ فِى قُلُوبِنَا غِلًّا لِّلَّذِينَ ءَامَنُوا۟ رَبَّنَآ إِنَّكَ رَءُوفٌ رَّحِيمٌ ۝١٠

And those who came (into the faith) after them say: Our Lord! Forgive us and our brethren who were before us in the faith, and place not in our hearts any rancour toward those who believe. Our Lord! Thou art Full of Pity, Merciful.

Marmaduke PickthallRead in context
FOLLOW-UP QUESTIONS

Questions readers often ask

How many takbirs are there in the Janazah prayer?

Four takbirs, followed by the salam. Sahih al-Bukhari 1333 records four takbirs in the Prophet's prayer for the Negus, and this is the practice taught in the four schools. Sahih Muslim 957 reports Zayd ibn Arqam once saying five, which is why the question is discussed.

Link to this question

Sources: [5] [6] [26] [29] [24] [28]

Is there ruku or sujud in the funeral prayer?

No. The funeral prayer is performed standing throughout, with takbirs, recitation, supplication and the salam, but no bowing, prostration or sitting. Its other conditions resemble those of salah, including wudu, covering and facing the qibla.

Link to this question

Sources: [28] [26] [25]

Can women pray Salat al-Janazah?

Yes. Sahih Muslim 973a reports Aisha asking for the bier of Sa'd ibn Abi Waqqas to be brought into the mosque so that she could pray over him. Following the procession to the cemetery is a separate question on which scholars differ, as Sahih al-Bukhari 1278 reflects.

Link to this question

Sources: [15] [18]

Do I need wudu for the funeral prayer?

Yes. Darul Ifta Birmingham states that the prerequisites are the same as for the obligatory prayers, including purity from minor and major impurity, covering and facing the Ka'bah. Arrive in wudu, because the prayer is brief and may start soon after the body arrives.

Link to this question

Sources: [26] [25]

What if I miss the funeral prayer?

The obligation is communal, so if others prayed, the community's duty has been met. You can still supplicate for the deceased at any time and support the family. Whether you may pray at the grave afterwards is discussed by the schools, drawing on reports such as Sahih al-Bukhari 1337.

Link to this question

Sources: [24] [14]

Can the funeral prayer be held in a mosque?

It commonly is. Sahih Muslim 973a reports Aisha reminding people that the Prophet prayed over Suhail ibn al-Bayda in the mosque. The Maliki school, as SeekersGuidance explains, prefers to avoid it where possible but allows joining to prevent problems within a community.

Link to this question

Sources: [15] [32]

CHECK THE EVIDENCE

Sources

  1. Qur'an 2:155–157 Primary text

    Patience in loss and the words said at a calamity; rendered from the verified local corpus.

    Back to citation
  2. Sahih al-Bukhari 1240 Primary text

    Following funeral processions among the rights of a Muslim on other Muslims.

    Back to citation
  3. Sahih al-Bukhari 1325 Primary text

    One qirat for attending the prayer and two for staying until burial.

    Back to citation
  4. Sahih Muslim 948 Primary text

    The intercession of forty people who pray over a Muslim.

    Back to citation
  5. Sahih al-Bukhari 1333 Primary text

    Rows and four takbirs in the prayer for the Negus.

    Back to citation
  6. Sahih Muslim 957 Primary text

    Zayd ibn Arqam's usual four takbirs and one occasion of five.

    Back to citation
  7. Sahih al-Bukhari 1335 Primary text

    Ibn Abbas reciting Al-Fatihah in a funeral prayer and calling it the Sunnah.

    Back to citation
  8. Sunan Abi Dawud 3199 Primary text

    Sincere supplication for the deceased; graded hasan by al-Albani on the page.

    Back to citation
  9. Sahih Muslim 963a Primary text

    Awf ibn Malik's report of the Prophet's supplication in a funeral prayer, with translation.

    Back to citation
  10. Sunan Abi Dawud 3201 Primary text

    A supplication for the living and the dead; graded sahih by al-Albani on the page.

    Back to citation
  11. Sahih al-Bukhari 1332 Primary text

    Standing at the middle of the bier of a woman who died in childbirth.

    Back to citation
  12. Jami at-Tirmidhi 1034 Primary text

    Anas standing at a man's head and a woman's waist; graded hasan (Darussalam) on the page.

    Back to citation
  13. Sahih al-Bukhari 1245 Primary text

    The funeral prayer for the Negus on the day of his death.

    Back to citation
  14. Sahih al-Bukhari 1337 Primary text

    Praying at the grave of a person who used to clean the mosque.

    Back to citation
  15. Sahih Muslim 973a Primary text

    Aisha praying over Sa'd and recalling a funeral prayer in the mosque.

    Back to citation
  16. Sahih al-Bukhari 1315 Primary text

    Hurrying with the bier.

    Back to citation
  17. Sunan Abi Dawud 3221 Primary text

    Seeking forgiveness and firmness for the deceased after burial; graded sahih by al-Albani on the page.

    Back to citation
  18. Sahih al-Bukhari 1278 Primary text

    Umm Atiyyah on women following funeral processions.

    Back to citation
  19. Sahih al-Bukhari 1284 Primary text

    The Prophet's words of condolence to his daughter.

    Back to citation
  20. Sahih al-Bukhari 1303 Primary text

    The Prophet's tears at the death of his son Ibrahim.

    Back to citation
  21. Sahih al-Bukhari 1294 Primary text

    The condemnation of slapping cheeks, tearing clothes and pre-Islamic lamentation.

    Back to citation
  22. Sunan Abi Dawud 3132 Primary text

    Preparing food for a bereaved family; graded hasan by al-Albani on the page.

    Back to citation
  23. Sahih al-Bukhari 1280 Primary text

    The limit on formal mourning, and the widow's longer period.

    Back to citation
  24. General Iftaa' Department of Jordan: The Manner of Funeral Prayer Scholarly guidance

    A Shafi'i account: collective duty, recitations after each takbir, hand-raising and the imam's position.

    Back to citation
  25. Mathabah: The Muslim Funeral Prayer Comparative scholarly guidance

    Shaykh Yusuf Badat compares the schools on recitation, hand-raising and the salam.

    Back to citation
  26. Darul Ifta Birmingham: Procedure of Janazah Salah Scholarly guidance

    A Hanafi procedure by Shaykh Sayeedur Rahman, including prerequisites and the imam's position.

    Back to citation
  27. Darul Ifta Birmingham: How Would a Masbooq Complete His Janazah Salah Scholarly guidance

    Mufti Mohammed Tosir Miah's Hanafi answer for latecomers.

    Back to citation
  28. IslamWeb: Funeral Prayer According to the Hanbali School Scholarly guidance

    The Hanbali method, hand-raising, single salam and the imam's position.

    Back to citation
  29. The Risala of Ibn Abi Zayd al-Qayrawani, translated by Joseph Kenny Reference

    Chapter 21 gives the Maliki description of the funeral prayer and the imam's position.

    Back to citation
  30. SeekersGuidance: Is the Funeral Prayer on One Who Is Absent Valid? Scholarly guidance

    Tabraze Azam, approved by Faraz Rabbani, on the Hanafi, Shafi'i and Hanbali positions.

    Back to citation
  31. Mathabah: Funeral Prayer in Absentia Comparative scholarly guidance

    Shaykh Yusuf Badat on the four schools and joining with the intention of supplication.

    Back to citation
  32. SeekersGuidance: The Maliki View on Eid and Janaza Prayers in a Masjid Scholarly guidance

    Shaykh Rami Nsour on funeral prayers inside mosques in the Maliki school.

    Back to citation

Put this into practice

SOURCE-LINKED READING

In-depth guides

Read complete English guides with visible sources and practical next steps.

All guides

Something needs correction? Include the guide title and source number so the editorial trail stays clear.

Report a correction