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.
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.

A calm place to remember and supplicate. The guide below explains the funeral prayer, the burial and how to support those who grieve.
AI illustrationSalat 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.
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.
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.
| Element | Hanafi | Maliki | Shafi'i | Hanbali |
|---|---|---|---|---|
| After the first takbir | Praise (thana) | Supplication for the deceased | Al-Fatihah | Al-Fatihah |
| After the second takbir | Blessings on the Prophet | Supplication | Blessings on the Prophet | Blessings on the Prophet |
| After the third takbir | Supplication for the deceased | Supplication | Supplication for the deceased | Supplication for the deceased |
| After the fourth takbir | Salam | Supplication, or the salam directly | A supplication or silence, then salam | A brief pause, then salam |
| Raising the hands | First takbir only | First takbir; raising at the others is not faulted | With every takbir | With every takbir |
| Salam | Two, to the right and left | One, said quietly | Two | One, to the right |
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.
| School | Deceased man | Deceased woman |
|---|---|---|
| Hanafi | Level with the chest | Level with the chest |
| Maliki | Level with the middle | Level with the shoulders |
| Shafi'i | Level with the head | Level with the waist |
| Hanbali | Level with the chest | Level with the waist |
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.
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.
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.
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.
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.
وَلَنَبْلُوَنَّكُم بِشَىْءٍ مِّنَ ٱلْخَوْفِ وَٱلْجُوعِ وَنَقْصٍ مِّنَ ٱلْأَمْوَٰلِ وَٱلْأَنفُسِ وَٱلثَّمَرَٰتِ ۗ وَبَشِّرِ ٱلصَّـٰبِرِينَ ١٥٥
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,
Al-Baqara 2:156. The words of the patient in affliction: we belong to Allah and to Him we return.
ٱلَّذِينَ إِذَآ أَصَـٰبَتْهُم مُّصِيبَةٌ قَالُوٓا۟ إِنَّا لِلَّهِ وَإِنَّآ إِلَيْهِ رَٰجِعُونَ ١٥٦
Who say, when a misfortune striketh them: Lo! we are Allah's and lo! unto Him we are returning.
Al-Baqara 2:157. Blessings and mercy from their Lord for those who respond with patience.
أُو۟لَـٰٓئِكَ عَلَيْهِمْ صَلَوَٰتٌ مِّن رَّبِّهِمْ وَرَحْمَةٌ ۖ وَأُو۟لَـٰٓئِكَ هُمُ ٱلْمُهْتَدُونَ ١٥٧
Such are they on whom are blessings from their Lord, and mercy. Such are the rightly guided.
Aal-i-Imraan 3:185. Every soul will taste death, and full recompense comes on the Day of Resurrection.
كُلُّ نَفْسٍ ذَآئِقَةُ ٱلْمَوْتِ ۗ وَإِنَّمَا تُوَفَّوْنَ أُجُورَكُمْ يَوْمَ ٱلْقِيَـٰمَةِ ۖ فَمَن زُحْزِحَ عَنِ ٱلنَّارِ وَأُدْخِلَ ٱلْجَنَّةَ فَقَدْ فَازَ ۗ وَمَا ٱلْحَيَوٰةُ ٱلدُّنْيَآ إِلَّا مَتَـٰعُ ٱلْغُرُورِ ١٨٥
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.
Al-Hashr 59:10. Believers asking forgiveness for those who preceded them in faith.
وَٱلَّذِينَ جَآءُو مِنۢ بَعْدِهِمْ يَقُولُونَ رَبَّنَا ٱغْفِرْ لَنَا وَلِإِخْوَٰنِنَا ٱلَّذِينَ سَبَقُونَا بِٱلْإِيمَـٰنِ وَلَا تَجْعَلْ فِى قُلُوبِنَا غِلًّا لِّلَّذِينَ ءَامَنُوا۟ رَبَّنَآ إِنَّكَ رَءُوفٌ رَّحِيمٌ ١٠
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.
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 questionIs 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 questionCan 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 questionDo 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 questionWhat 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 questionCan 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 questionSources
- Qur'an 2:155–157 Primary textBack to citation
Patience in loss and the words said at a calamity; rendered from the verified local corpus.
- Sahih al-Bukhari 1240 Primary textBack to citation
Following funeral processions among the rights of a Muslim on other Muslims.
- Sahih al-Bukhari 1325 Primary textBack to citation
One qirat for attending the prayer and two for staying until burial.
- Back to citation
- Back to citation
- Back to citation
- Sahih al-Bukhari 1335 Primary textBack to citation
Ibn Abbas reciting Al-Fatihah in a funeral prayer and calling it the Sunnah.
- Sunan Abi Dawud 3199 Primary textBack to citation
Sincere supplication for the deceased; graded hasan by al-Albani on the page.
- Sahih Muslim 963a Primary textBack to citation
Awf ibn Malik's report of the Prophet's supplication in a funeral prayer, with translation.
- Sunan Abi Dawud 3201 Primary textBack to citation
A supplication for the living and the dead; graded sahih by al-Albani on the page.
- Sahih al-Bukhari 1332 Primary textBack to citation
Standing at the middle of the bier of a woman who died in childbirth.
- Jami at-Tirmidhi 1034 Primary textBack to citation
Anas standing at a man's head and a woman's waist; graded hasan (Darussalam) on the page.
- Back to citation
- Back to citation
- Back to citation
- Back to citation
- Sunan Abi Dawud 3221 Primary textBack to citation
Seeking forgiveness and firmness for the deceased after burial; graded sahih by al-Albani on the page.
- Back to citation
- Back to citation
- Back to citation
- Sahih al-Bukhari 1294 Primary textBack to citation
The condemnation of slapping cheeks, tearing clothes and pre-Islamic lamentation.
- Sunan Abi Dawud 3132 Primary textBack to citation
Preparing food for a bereaved family; graded hasan by al-Albani on the page.
- Back to citation
- General Iftaa' Department of Jordan: The Manner of Funeral Prayer Scholarly guidanceBack to citation
A Shafi'i account: collective duty, recitations after each takbir, hand-raising and the imam's position.
- Mathabah: The Muslim Funeral Prayer Comparative scholarly guidanceBack to citation
Shaykh Yusuf Badat compares the schools on recitation, hand-raising and the salam.
- Darul Ifta Birmingham: Procedure of Janazah Salah Scholarly guidanceBack to citation
A Hanafi procedure by Shaykh Sayeedur Rahman, including prerequisites and the imam's position.
- Darul Ifta Birmingham: How Would a Masbooq Complete His Janazah Salah Scholarly guidanceBack to citation
Mufti Mohammed Tosir Miah's Hanafi answer for latecomers.
- IslamWeb: Funeral Prayer According to the Hanbali School Scholarly guidanceBack to citation
The Hanbali method, hand-raising, single salam and the imam's position.
- The Risala of Ibn Abi Zayd al-Qayrawani, translated by Joseph Kenny ReferenceBack to citation
Chapter 21 gives the Maliki description of the funeral prayer and the imam's position.
- SeekersGuidance: Is the Funeral Prayer on One Who Is Absent Valid? Scholarly guidanceBack to citation
Tabraze Azam, approved by Faraz Rabbani, on the Hanafi, Shafi'i and Hanbali positions.
- Mathabah: Funeral Prayer in Absentia Comparative scholarly guidanceBack to citation
Shaykh Yusuf Badat on the four schools and joining with the intention of supplication.
- SeekersGuidance: The Maliki View on Eid and Janaza Prayers in a Masjid Scholarly guidanceBack to citation
Shaykh Rami Nsour on funeral prayers inside mosques in the Maliki school.
Put this into practice
In-depth guides
Read complete English guides with visible sources and practical next steps.

How to Pray Salah: A Beginner's Step-by-Step Guide
Learn a clear common Sunni salah sequence, the daily prayer units, what to prepare, what to recite, and where recognized practice differences occur.
Read the guide
How to Perform Wudu: A Clear Step-by-Step Guide
Learn how to make wudu in a practical common Sunni sequence, what must be washed, what commonly breaks wudu, and when to ask about school-specific details.
Read the guide
Tayammum Guide: When It Is Allowed, Clean Earth, and Wiping Methods
Understand when tayammum can replace wudu or ghusl, how to prepare and wipe, which surfaces qualify, and why methods and renewal rules differ by school.
Read the guide
Jummah Prayer Guide: Friday Time, Khutbah, Rak'ahs, and Late Arrival
Prepare for Jumu'ah with a practical guide to Friday prayer, the khutbah, two congregational rak'ahs, who must attend, and what to do if you arrive late.
Read the guide
Eid Prayer: How to Pray Salat al-Eid, Its Time, Takbirs and Sunnahs
How to pray Eid al-Fitr and Eid al-Adha: prayer time, two rak'ahs, extra takbirs by school, the khutbah, Sunnahs of the day, zakat al-fitr and udhiyah timing.
Read the guide
Kindness to Parents in Islam: What the Qur'an and Sunnah Teach
Kindness to parents in the Qur'an and Sunnah: the mother's status, non-Muslim parents, limits of obedience, old age, abuse and honouring parents after death.
Read the guideSomething needs correction? Include the guide title and source number so the editorial trail stays clear.
Report a correction