حَرْفHarf اردو

Home Guides How to pray the janazah (funeral) prayer

Guide · Updated 9 November 2026

How to pray the janazah (funeral) prayer

Salat al-Janazah is the prayer Muslims offer for a Muslim who has died, asking Allah to forgive and have mercy on them. It is short, prayed standing, with no ruku or sujud, and has four takbirs. It is a communal obligation (farḍ kifāyah): if some Muslims pray it, the rest are freed of the duty, but everyone who attends gains a great reward. The steps below follow the Hanafi school.

The reward of attending

The Prophet ﷺ said: “Whoever attends a funeral until he prays over it will have one qīrāṭ, and whoever attends until the body is buried will have two qīrāṭs.” He was asked what two qīrāṭs are and said: “Like two great mountains” (Sahih al-Bukhari 1325). He also told his Companions to hurry with the funeral (Sahih al-Bukhari 1315).

Before the prayer

You need wudu and to face the Qibla, as for any prayer. The body is placed in front of the imam, and the people stand behind him in rows; an odd number of rows is often preferred. In the Hanafi school the imam stands level with the chest of the deceased, man or woman. If you arrive late, join at the next takbir and make up the missed takbirs after the imam finishes, before the body is lifted.

Step 1: Intention and the first takbir

Intend in your heart to pray the funeral prayer for this deceased, for the sake of Allah, following the imam. Raise your hands and say اللّٰهُ أَكْبَرُ, then fold them as in salah. Quietly recite the opening praise: سُبْحَانَكَ اللّٰهُمَّ وَبِحَمْدِكَ، وَتَبَارَكَ اسْمُكَ، وَتَعَالٰى جَدُّكَ، وَجَلَّ ثَنَاؤُكَ، وَلَا إِلٰهَ غَيْرُكَ. The Hanafis add “wa jalla thanāʾuk” (“and great is Your praise”) in this prayer. The Shafiʿi and Hanbali schools recite Al-Fatiha after the first takbir instead; Ibn ʿAbbas did so and called it Sunnah (Sahih al-Bukhari 1335).

Step 2: The second takbir and salawat

Say اللّٰهُ أَكْبَرُ without raising the hands (Hanafi), and recite the Ibrahimi salawat, the same as in the last sitting of salah: اللّٰهُمَّ صَلِّ عَلٰى مُحَمَّدٍ وَعَلٰى آلِ مُحَمَّدٍ، كَمَا صَلَّيْتَ عَلٰى إِبْرَاهِيمَ وَعَلٰى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ، اللّٰهُمَّ بَارِكْ عَلٰى مُحَمَّدٍ وَعَلٰى آلِ مُحَمَّدٍ، كَمَا بَارَكْتَ عَلٰى إِبْرَاهِيمَ وَعَلٰى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ.

Step 3: The third takbir and the dua for the deceased

Say اللّٰهُ أَكْبَرُ and make dua for the deceased. For an adult, the dua most used in the Hanafi school is: اللّٰهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا، وَشَاهِدِنَا وَغَائِبِنَا، وَصَغِيرِنَا وَكَبِيرِنَا، وَذَكَرِنَا وَأُنْثَانَا، اللّٰهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الْإِسْلَامِ، وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الْإِيمَانِ: “O Allah, forgive our living and our dead, those present and those absent, our young and our old, our men and our women. O Allah, whoever of us You keep alive, keep him alive on Islam, and whoever of us You take, take him in faith” (Sunan Abi Dawud 3201; Sunan at-Tirmidhi 1024). Another authentic dua begins اللّٰهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ، وَعَافِهِ وَاعْفُ عَنْهُ (Sahih Muslim 963). The full texts with audio are on janazah dua.

The dua for a child

For a child who died before puberty, there is no need to ask forgiveness for them. Instead ask Allah to make the child a reward for the parents: اللّٰهُمَّ اجْعَلْهُ لَنَا فَرَطًا، وَاجْعَلْهُ لَنَا أَجْرًا وَذُخْرًا، وَاجْعَلْهُ لَنَا شَافِعًا وَمُشَفَّعًا: “O Allah, make him go ahead of us to prepare for us, make him a reward and a treasure for us, and make him an intercessor for us whose intercession is accepted.” For a girl, say اجْعَلْهَا … شَافِعَةً وَمُشَفَّعَةً. See janazah dua for a child.

Step 4: The fourth takbir and the salam

Say اللّٰهُ أَكْبَرُ a fourth time, pause briefly, then turn to the right saying السَّلَامُ عَلَيْكُمْ وَرَحْمَةُ اللّٰهِ, and then to the left. The prayer is complete. In the Hanafi school nothing is recited after the fourth takbir; some scholars of other schools allow a short dua there.

After the prayer

Follow the body to the graveyard if you can, for the second qīrāṭ. When the body is placed in the grave, say: بِسْمِ اللّٰهِ وَعَلٰى سُنَّةِ رَسُولِ اللّٰهِ (Sunan Abi Dawud 3213); see the dua at burial. After burial, the Prophet ﷺ would stand by the grave and say: “Ask forgiveness for your brother and ask that he be made firm, for he is now being questioned” (Sunan Abi Dawud 3221).

Comforting the family

Visit the family, make dua for them and the deceased, and help with food: when Jaʿfar was martyred the Prophet ﷺ said: “Make food for the family of Jaʿfar, for something has come to them that keeps them busy” (Sunan Abi Dawud 3132). A good thing to say is: “To Allah belongs what He took and to Him belongs what He gave; everything with Him has an appointed time, so be patient and hope for reward” (Sahih al-Bukhari 1284). And when you hear of a death, say innā lillāhi wa innā ilayhi rājiʿūn.

More guides

The Madinah Arabic books: how to study them for free

How the Madinah Arabic books (Durus al-Lughah al-Arabiyyah) work, where to get them free from the author’s institute, and how to study Book 1 online with free lessons in English and Urdu.

How to learn Quranic Arabic: a plan for beginners

A practical, free plan to understand the Arabic of the Quran: learn to read, learn the most common words and roots, learn basic grammar, then read surahs word by word.

MSA, Quranic Arabic or a dialect: which should you learn first?

The difference between Modern Standard Arabic (fusha), Quranic (classical) Arabic and spoken dialects such as Saudi or Egyptian, and which one to start with for your goals.

Learn Arabic for free: a 90-day plan

A free 90-day plan to learn Arabic from zero: the alphabet in 10 days, then grammar, vocabulary, reading and listening, 15–20 minutes a day, with no sign-up.

How many rakats are in each prayer?

How many rakats are in each of the five daily prayers: fard, sunnah and witr for Fajr, Dhuhr, Asr, Maghrib and Isha, plus Jumuah and travel, with the hadith behind each number.

What to say after salah

The short adhkar the Prophet ﷺ said after every fard prayer, in order: istighfar, Allahumma antas-salam, the tahlil, 33-33-33 tasbih, Ayat al-Kursi and the three Quls, with Arabic, meaning and hadith sources.

How to pray salah, step by step

How to pray salah step by step, from wudu and intention to the final salam, with every Arabic word, its meaning and the hadith behind it. Written for beginners and new Muslims.

How to perform wudu, step by step

How to make wudu step by step: the four fard acts, the Sunnah way the Prophet ﷺ did it, the duas before and after, what breaks wudu, and wiping over socks. Hanafi, with other views noted.

How to teach your kids the Quran at home

A practical, age-by-age plan for teaching children the Quran at home: the Arabic letters, Qaida, short surahs, daily routine, memorisation tips and keeping it joyful. With free printables.

How to read the Quran in Arabic as an adult beginner

A step-by-step path for adults and new Muslims to read the Quran in Arabic: letters, vowel marks, joining, tajweed basics, a daily plan, and how to start understanding what you read.

How to perform ghusl, step by step

How to do ghusl, the full Islamic bath: when it is required, the three fard acts, the Sunnah method the Prophet ﷺ followed, and answers for women, braids and showers.

How to pray istikhara, step by step

How to pray istikhara: the two rakats, the full dua in Arabic with meaning and pronunciation, where to name your decision, and what to expect afterwards. No dream is needed.

What breaks the fast, and what does not

What breaks the fast and what does not: eating by mistake, vomiting, toothbrush, eye and nose drops, injections, blood tests, periods, and who may skip a fast. Hanafi, with sources.

How to pray the Eid prayer

How to pray Salat al-Eid: the time, the two rakats with the extra takbirs (Hanafi), the khutbah, and the Sunnahs of Eid morning for Eid al-Fitr and Eid al-Adha.

How to perform Umrah, step by step

A complete step-by-step guide to Umrah: ihram and the miqat, the talbiyah, tawaf around the Kaʿbah, the two rakats, Zamzam, saʿi between Safa and Marwah, and shaving or trimming.

How to calculate zakat

A clear guide to zakat: who must pay, the nisab in gold and silver, the one-year rule, what wealth to count and deduct, 2.5% worked example, and the eight groups who can receive it.

How to pray tahajjud

How to pray tahajjud, the night prayer: the best time (the last third of the night), how many rakats, how to pray them with witr, the duas of the night, and practical tips to wake up.

Harf is free for everyone. If it helps you, a small tip keeps new lessons coming.

Support Harf