Pending scholarly reviewA qualified scholar has not yet reviewed this page. Every ruling cites its source; ask your imam about your own situation.
How to pray the janazah prayer
The funeral prayer is prayed standing, with no bowing and no prostration. The imam leads; everyone else stands in rows behind him. It has four takbīrs, and something is said after each one.
Print the card for your masjid entrance · the four takbīrs on a half-letter card
The steps of the prayer
-
Stand in rows and make your intention
Stand behind the imam facing the qiblah, with the body in front of him. Intend in your heart to pray the funeral prayer for this person.
The Prophet ﷺ prayed for al-Najāshī with the people in rows behind him and said four takbīrs: Ṣaḥīḥ al-Bukhārī 1245
-
First takbīr, then al-Fātiḥah
Raise your hands and say Allāhu akbar, then recite al-Fātiḥah quietly.
سورة الفاتحة Qur’an · Al-Fātiḥahبسم الله الرحمن الرحيم
بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ
ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ
ٱلرَّحْمَٰنِ ٱلرَّحِيمِ
مَٰلِكِ يَوْمِ ٱلدِّينِ
إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ
ٱهْدِنَا ٱلصِّرَٰطَ ٱلْمُسْتَقِيمَ
صِرَٰطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّآلِّينَ
In the name of Allah, the Entirely Merciful, the Especially Merciful. [All] praise is [due] to Allah, Lord of the worlds - The Entirely Merciful, the Especially Merciful, Sovereign of the Day of Recompense. It is You we worship and You we ask for help. Guide us to the straight path - The path of those upon whom You have bestowed favor, not of those who have evoked [Your] anger or of those who are astray.
Ṣaḥīḥ al-Bukhārī 1335 · Arabic: Tanzil; translation: Saheeh International
Where the schools differ. The Ḥanafī and Mālikī schools praise Allah here instead of reciting al-Fātiḥah. The Shāfiʿī and Ḥanbalī schools recite it, following Ibn ʿAbbās. Follow your imam.
-
Second takbīr, then blessings on the Prophet ﷺ
Say Allāhu akbar and send blessings on the Prophet ﷺ, as in the sitting of every prayer.
دعاء Words of supplicationاللَّهُمَّ صَلِّ عَلَى مُحَمَّدٍ، وَعَلَى آلِ مُحَمَّدٍ، كَمَا صَلَّيْتَ عَلَى إِبْرَاهِيمَ وَعَلَى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ، اللَّهُمَّ بَارِكْ عَلَى مُحَمَّدٍ، وَعَلَى آلِ مُحَمَّدٍ، كَمَا بَارَكْتَ عَلَى إِبْرَاهِيمَ، وَعَلَى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ
PronunciationTransliteration of the first part, as on the cardAllāhumma ṣalli ʿalā Muḥammadin wa ʿalā āli Muḥammad, kamā ṣallayta ʿalā Ibrāhīma wa ʿalā āli Ibrāhīm, innaka ḥamīdun majīd
MeaningO Allah! Send Your Mercy on Muhammad and on the family of Muhammad, as You sent Your Mercy on Abraham and on the family of Abraham, for You are the Most Praise-worthy, the Most Glorious. O Allah! Send Your Blessings on Muhammad and the family of Muhammad, as You sent your Blessings on Abraham and on the family of Abraham, for You are the Most Praise-worthy, the Most Glorious.
-
Third takbīr, then the duʿāʾ for the one who has died
Say Allāhu akbar and pray for them. This is the heart of the prayer; any sincere duʿāʾ fulfils it, and this is one the Prophet ﷺ said.
دعاء Words of supplicationاللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ وَأَكْرِمْ نُزُلَهُ وَوَسِّعْ مُدْخَلَهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الأَبْيَضَ مِنَ الدَّنَسِ وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ وَأَهْلاً خَيْرًا مِنْ أَهْلِهِ وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ وَأَدْخِلْهُ الْجَنَّةَ وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ أَوْ مِنْ عَذَابِ النَّارِ
PronunciationTransliteration of the opening, as on the cardAllāhumma-ghfir lahu wa-rḥamhu wa ʿāfihi wa-ʿfu ʿanhu, wa akrim nuzulahu wa wassiʿ mudkhalah
MeaningO Allah! forgive him, have mercy upon him, give him peace and absolve him. Receive him with honour and make his grave spacious; wash him with water, snow and hail. Cleanse him from faults as Thou wouldst cleanse a white garment from impurity. Requite him with an abode more excellent than his abode, with a family better than his family, and with a mate better than his mate. Admit him to the Garden, and protect him from the torment of the grave and the torment of the Fire.
For a woman, “him” becomes “her” (lahā)
The Prophet ﷺ also prayed this duʿāʾ over the dead, for the whole community. It can be said with the first or in its place.
دعاء Words of supplicationاللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا وَصَغِيرِنَا وَكَبِيرِنَا وَذَكَرِنَا وَأُنْثَانَا وَشَاهِدِنَا وَغَائِبِنَا اللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الإِيمَانِ وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الإِسْلاَمِ اللَّهُمَّ لاَ تَحْرِمْنَا أَجْرَهُ وَلاَ تُضِلَّنَا بَعْدَهُ
PronunciationAllāhumma-ghfir li-ḥayyinā wa mayyitinā, wa ṣaghīrinā wa kabīrinā, wa dhakarinā wa unthānā, wa shāhidinā wa ghāʾibinā. Allāhumma man aḥyaytahu minnā fa-aḥyihi ʿalā al-īmān, wa man tawaffaytahu minnā fa-tawaffahu ʿalā al-islām. Allāhumma lā taḥrimnā ajrahu wa lā tuḍillanā baʿdah
MeaningO Allah, forgive our living and our dead, our young and our old, our male and our female, those of us present and those absent. O Allah, whoever of us You keep alive, keep him alive in faith, and whoever of us You take, take him in Islam. O Allah, do not deprive us of his reward and do not let us go astray after him.
Sunan Abī Dāwūd 3201 (ṣaḥīḥ, al-Albānī) · also Tirmidhī 1024, ḥasan ṣaḥīḥ; Ibn Mājah 1498
For a child
The prayer over a child is the same. After the third takbīr, pray for the child and for the parents. The Prophet ﷺ said that a miscarried child is prayed over and that forgiveness and mercy are asked for its parents.
من هدي النبي ﷺ From the teachings of the Prophet ﷺوَالسِّقْطُ يُصَلَّى عَلَيْهِ وَيُدْعَى لِوَالِدَيْهِ بِالْمَغْفِرَةِ وَالرَّحْمَةِ
The miscarried child is prayed over, and forgiveness and mercy are asked for its parents.
The wording most often taught for a child is not from the Prophet ﷺ. Al-Bukhārī records it, without a chain, as what al-Ḥasan al-Baṣrī, one of the generation after the Companions, used to say. It is a good duʿāʾ and widely used; say it knowing where it comes from.
دعاء Words of supplicationاللَّهُمَّ اجْعَلْهُ لَنَا فَرَطًا وَسَلَفًا وَأَجْرًا
PronunciationAllāhumma-jʿalhu lanā faraṭan wa salafan wa ajrā
MeaningO Allah, make him for us one who goes ahead to prepare the way, a forerunner, and a reward.
Abū Hurayrah, a Companion, prayed over a child who had never done wrong and was heard saying the shorter duʿāʾ below. Mālik records it in the Muwaṭṭaʾ. This too is a Companion’s own practice, not a saying of the Prophet ﷺ.
دعاء Words of supplicationاللَّهُمَّ أَعِذْهُ مِنْ عَذَابِ الْقَبْرِ
PronunciationAllāhumma aʿidhhu min ʿadhāb al-qabr
MeaningO Allah, protect him from the punishment of the grave.
Muwaṭṭaʾ Mālik, Kitāb al-Janāʾiz 16:18 (Abū Hurayrah’s own practice)
For a girl, -hu (him) becomes -hā (her): ijʿalhā, aʿidhhā. More on when a child dies.
-
Fourth takbīr, then the salām
Say Allāhu akbar, pause briefly for a short duʿāʾ, then turn your head to the right and say as-salāmu ʿalaykum wa raḥmatullāh. Many also turn to the left.
-
If you missed it, or they died far away
At the grave. A woman (or man) who used to sweep the masjid died and was buried without the Prophet ﷺ being told. He asked to be shown the grave, and prayed over it there. The schools differ on who may do this and for how long after the burial, so ask your imam before you go.
In absentia. When al-Najāshī, the king of Abyssinia, died far away, the Prophet ﷺ announced his death and led the funeral prayer for him in Madinah. This is the ṣalāt al-ghāʾib, prayed as above but with no body present.
Where the schools differ. The Shāfiʿī and Ḥanbalī schools allow the prayer in absentia. The Ḥanafī school holds that it is not valid, and the Mālikī school dislikes it; both explain the prayer over al-Najāshī as particular to the Prophet ﷺ. Some scholars allow it only soon after the death. Follow your imam and your masjid’s practice. Radd al-Muḥtār (Ḥanafī) 2:209 · al-Sharḥ al-Kabīr (Mālikī) 1:427 · Dār al-Iftāʾ al-Miṣriyyah, fatwā 4248
-
Women and the janazah
The prayer. Women may pray the janazah prayer, and it is valid in all four schools. When men are present, women pray behind the imam, and in the Shāfiʿī school it is the men’s prayer that fulfils the communal duty. When Saʿd ibn Abī Waqqāṣ died, the wives of the Prophet ﷺ had his bier brought through the masjid to their rooms and prayed over him.
Ṣaḥīḥ Muslim 973b · Al-Nawawī, al-Majmūʿ (Shāfiʿī), 5:213 and 5:215
If only women are present. The prayer is then theirs to pray, and it counts. The Ḥanafī and Ḥanbalī books have them pray together, the woman leading standing in the middle of the row. The Mālikī book has each pray on her own, all at the same time. Al-Shāfiʿī preferred them to pray individually and allowed a congregation. Radd al-Muḥtār (Ḥanafī) 1:565–566 · al-Sharḥ al-Kabīr (Mālikī) 1:428 · al-Majmūʿ (Shāfiʿī) 5:213, 5:215 · al-Mughnī (Ḥanbalī) 2:361 · Kashshāf al-Qināʿ (Ḥanbalī) 2:125–126
Following the funeral to the grave. Umm ʿAṭiyyah said: “We were forbidden to follow funerals, but it was not made binding on us.”
Ṣaḥīḥ al-Bukhārī 1278 · Ṣaḥīḥ Muslim 938
Where the schools differ. The Ḥanafī school holds it disliked to the point of prohibition (makrūh taḥrīman). The Shāfiʿī and Ḥanbalī books call it disliked, and read Umm ʿAṭiyyah’s words as a prohibition that is not binding (tanzīh). The Mālikī books allow an older woman to follow any funeral, and a younger woman, where no fitnah is feared, to follow the funeral of a parent, husband, child, brother or sister. Ask your imam what your community follows. Radd al-Muḥtār (Ḥanafī) 2:232 · al-Sharḥ al-Kabīr (Mālikī) 1:421 · al-Majmūʿ (Shāfiʿī) 5:277–278 · al-Mughnī (Ḥanbalī) 2:356 · Kashshāf al-Qināʿ (Ḥanbalī) 2:129
Last checked against its sources: October 2026 · Sources · Something wrong? Tell us