Salat al-Janaza — the funeral prayer, and the duas for the deceased
Published 30 November 2026 · Quranic360
The janaza prayer — Salat al-Janaza — is the funeral prayer, the last right of a Muslim over another Muslim, and a final dua for the one who has died. It is a short prayer, prayed standing, with four takbirs, the recitation of Al-Fatiha, and dua for the deceased. This article explains the janaza prayer from the hadith, and gives the two famous duas — as two separate duas, not one.

The funeral prayer has four takbirs. When the Negus (the king of Abyssinia) died, the Prophet (ﷺ) gave the people the news of his death on the day he died, took them out to the place of prayer, and observed four takbirs over him:
“Abu Huraira reported that the Messenger of Allah (ﷺ) gave the people news of the death of Negus on the day he died, and he took them out to the place of prayer and observed four takbirs.”
Sahih Muslim 951a, Book of Prayer — Funerals (Kitab al-Jana'iz), narrated by Abu Huraira (sunnah.com/muslim:951)
Al-Fatiha is recited in the funeral prayer. Talha ibn Abdullah ibn Auf prayed the funeral prayer behind Ibn Abbas (may Allah be pleased with them), and Ibn Abbas recited Al-Fatiha and said:
“You should know that it (i.e. recitation of Al-Fatiha) is the tradition of the Prophet (ﷺ) Muhammad.”
Sahih al-Bukhari 1335, Book of Funerals (Al-Jana'iz), narrated by Talha ibn Abdullah ibn Auf (sunnah.com/bukhari:1335)
So the parts of the Janaza prayer verified by these hadiths are: four takbirs, the recitation of Al-Fatiha, and dua for the deceased — ending with taslim. The exact placement of the Fatiha and the duas after each takbir is a matter of fiqh detail; the step order already on this site is on our resource page, Salat al-Janaza.
When the Prophet (ﷺ) prayed the janaza prayer over a dead person, he said this general dua, which covers the living and the dead, the present and the absent, the young and the old, male and female:
اللَّهُمَّ اغْفِرْ لِحَيِّنَا وَمَيِّتِنَا وَصَغِيرِنَا وَكَبِيرِنَا وَذَكَرِنَا وَأُنْثَانَا وَشَاهِدِنَا وَغَائِبِنَا اللَّهُمَّ مَنْ أَحْيَيْتَهُ مِنَّا فَأَحْيِهِ عَلَى الإِيمَانِ وَمَنْ تَوَفَّيْتَهُ مِنَّا فَتَوَفَّهُ عَلَى الإِسْلاَمِ اللَّهُمَّ لاَ تَحْرِمْنَا أَجْرَهُ وَلاَ تُضِلَّنَا بَعْدَهُ
“When the Messenger of Allah (ﷺ) prayed over a dead person, he said: O Allah, forgive those of us who are living and those of us who are dead, those of us who are present and those of us who are absent, our young and our old, our male and our female. O Allah, to whomsoever of us Thou givest life grant him life as a believer, and whomsoever of us Thou takest in death take him in death as a follower of Islam. O Allah, do not withhold from us the reward (of faith) and do not lead us astray after his death.”
Sunan Abi Dawud 3201, Book of Funerals (Kitab al-Jana'iz), narrated by Abu Huraira — graded Sahih by al-Albani (sunnah.com/abudawud:3201)
The second famous dua is a personal one, said for the deceased by name — asking forgiveness, mercy, peace, an honoured reception, a spacious grave, cleansing from faults, a better abode, family and spouse, admission to the Garden, and protection from the torment of the grave and the Fire:
اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ وَعَافِهِ وَاعْفُ عَنْهُ وَأَكْرِمْ نُزُلَهُ وَوَسِّعْ مُدْخَلَهُ وَاغْسِلْهُ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ وَنَقِّهِ مِنَ الْخَطَايَا كَمَا نَقَّيْتَ الثَّوْبَ الأَبْيَضَ مِنَ الدَّنَسِ وَأَبْدِلْهُ دَارًا خَيْرًا مِنْ دَارِهِ وَأَهْلاً خَيْرًا مِنْ أَهْلِهِ وَزَوْجًا خَيْرًا مِنْ زَوْجِهِ وَأَدْخِلْهُ الْجَنَّةَ وَأَعِذْهُ مِنْ عَذَابِ الْقَبْرِ أَوْ مِنْ عَذَابِ النَّارِ
“O 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.”
Sahih Muslim 963a, 963b, Book of Prayer — Funerals, narrated by Auf ibn Malik (sunnah.com/muslim:963a). Auf said after hearing it: “I earnestly desired that I were this dead body.”
These are two separate duas: the first is general, for the living and the dead; the second is personal, for the deceased. Do not mix them into one dua.
Most people first hear the Janaza prayer at a funeral, when there is no time to learn it. Learning the four takbirs, Al-Fatiha and these duas beforehand means that when the time comes, you can stand in the janaza prayer and make dua for the deceased properly — and that is the purpose of the prayer.
Sources: Sahih Muslim 951a; Sahih al-Bukhari 1335; Sunan Abi Dawud 3201 (graded Sahih by al-Albani); Sahih Muslim 963a.
For the step-by-step guide to the funeral prayer, see our resource page.
Salat al-Janaza — Step-by-Step Guide Eid PrayerBook a FREE 30-minute demo class with a qualified online Quran teacher — one-to-one, for kids and adults.
Book Your Free Demo Class WhatsApp Us