Quick facts about Janazah:

Status: fard kifaya (collective obligation) on the Muslim community
Structure: 4 takbirs, no ruku or sujud, no adhan or iqamah
Ghusl: washing the deceased is obligatory (Bukhari 1254)
Kafan: 3 white sheets for a man, 5 cloths for a woman
Burial: on the right side facing Qibla (Bukhari 1350)
Haste: "Carry the janazah briskly" (Bukhari 1314)

Death in Islam is not a private matter. When a Muslim dies, the community around that person inherits a set of obligations: to wash the body, to wrap it in white cloth, to stand over it in prayer, and to lower it into the earth on its right side facing the direction of the qibla. These rites are not optional. They are fard kifaya, a collective obligation, meaning that the responsibility falls on the entire Muslim community until enough people have fulfilled it. If none do, every Muslim who knew of the death and was able to act carries the sin of neglect.

This guide walks through every stage of the Islamic funeral rites: ghusl al-mayyit (washing the deceased), the kafan (shroud), carrying the janazah, the structure and recitations of salat al-janazah, burial, condolences (ta'ziya), and visiting graves. It is organized for both practical use and deeper understanding of the prophetic tradition behind each act.

Janazah as fard kifaya

Salat al-janazah is a fard kifaya (obligatory sufficiency): if a sufficient number of Muslims perform it, the obligation lifts from all others. If none perform it, all who could have attended but did not are sinful. The Prophet ﷺ said: "Whoever attends the janazah until the prayer is completed will have a qirat of reward, and whoever remains until the burial will have two qirats." He was asked what a qirat is, and said: "Like two great mountains" (Sahih al-Bukhari 1325).

This narration reveals two things: attending the janazah prayer alone carries immense reward, and remaining for the burial doubles it. The Prophet ﷺ used the image of mountains to convey the magnitude of reward for fulfilling this collective duty, and to motivate Muslims to remain present through the complete rite rather than leaving after the prayer.

The Prophet ﷺ also commanded: "Pray over everyone who says la ilaha illallah" (Bayhaqi, with a sound chain). This principle means that no Muslim, regardless of their sins, is to be denied the janazah prayer as long as they died professing the shahada. The only exception the scholars mention is the one who intentionally killed themselves, and even in that case the majority hold that the prayer must be performed, though the imam or community leader may choose not to personally lead it.

Ghusl al-mayyit: washing the deceased

The first obligation after a Muslim dies is to wash the body (ghusl al-mayyit). This washing is obligatory according to the consensus of the scholars. When the daughter of the Prophet ﷺ, Zaynab (RA), died, he instructed the women who washed her: "Wash her three times, or five, or seven, or more if you see fit, with water and sidr (lote leaves), and place camphor in the last wash" (Sahih al-Bukhari 1254).

The minimum ghusl is one complete washing of the entire body. The sunnah is to wash three, five, or seven times. The recommended sequence is: begin with the private parts and areas of wudu, wash the right side before the left, and use sidr or soap. Camphor or a fragrant substance is added to the final wash. The body is then gently dried with a cloth.

Who may perform the ghusl: a man's body is washed by men (ideally his father, son, or close male relatives), and a woman's body is washed by women (ideally her mother, daughter, or close female relatives). A husband may wash his wife, and the Prophet ﷺ reportedly wished to wash Khadijah (RA) himself (Sahih al-Bukhari 1253 context). Aisha (RA) said: "If I had known then what I know now, only his wives would have washed the Prophet ﷺ." The washing of the deceased is an act of care, not ritual pollution; the one who performs it does not become impure, though scholars recommend they make ghusl afterward as a precaution.

A shahid (martyr killed in battle) is not washed, as the Prophet ﷺ ordered that the martyrs of Uhud not be washed and be buried in their blood-stained clothes (Sahih al-Bukhari 1343).

Kafan: the shroud

After washing, the body is wrapped in white cotton cloth called the kafan. The Prophet ﷺ was buried in three white pieces of cloth from Yemen, with no shirt or turban among them (Sahih al-Bukhari 1264). White is strongly recommended; colored or patterned cloth is disliked but does not invalidate the burial.

For a man: three cloths are used. The first is the izar (lower wrap), the second is the rida (upper wrap), and the third is the lifafa (the outer sheet that wraps the entire body). For a woman: five cloths are used, adding a qamis (shirt) and a khimar (head covering) to the three cloths of the man. This is because the woman's awrah is more extensive and the scholars held that this coverage should be maintained even in death.

The kafan should be clean and simple. It should not be expensive silk, which is haram for men. Some scholars recommend that the kafan cloths be white because the Prophet ﷺ said: "Wear white clothes, for they are the best of your clothes, and shroud your dead in them" (Abu Dawud 3878, authenticated). The kafan is tied at the head and feet and knotted. These knots are loosened once the body is placed in the grave.

Carrying the janazah

The janazah is carried on a bier (stretcher), lifted on the shoulders of the community, and transported to the place of prayer and then to the graveyard. The Prophet ﷺ gave a specific instruction about pace:

"Walk briskly with the funeral. If the deceased was righteous, it is good that you are hastening toward that goodness. And if otherwise, it is an evil thing that you are putting down from your necks." (Sahih al-Bukhari 1314)

This hadith establishes the sunnah of moving at a brisk but dignified pace, not rushing frantically and not moving so slowly that it becomes a procession. The deceased deserves prompt attention. Delaying the burial without necessity is discouraged.

It is sunnah to carry the bier from all four sides: front-right, front-left, back-right, back-left. The Prophet ﷺ said: "Carrying the bier from the four sides is from the sunnah" (Ibn Majah 1478, hasan). Those who cannot carry the bier walk alongside it with dignity.

The scholars discouraged following the janazah with a loud voice, chanting, incense burning, or music. The procession should be conducted in quiet dignity and reflection. Those walking with the janazah are encouraged to reflect on their own mortality and on the hereafter.

Salat al-janazah: the four takbirs

Salat al-janazah has a unique structure unlike any other Islamic prayer: it consists of four standing takbirs with no ruku (bowing), no sujud (prostration), and no sitting. There is also no adhan or iqamah before it. The prayer is performed standing, and it concludes with the tasleem (salam) to the right.

The imam stands facing the qibla in front of the deceased. If the deceased is male, the imam stands level with the head. If the deceased is female, the imam stands level with the middle of the body. This is established practice from the companions (reported in Abu Dawud 3194).

The four-takbir structure is established by multiple authentic narrations. The Prophet ﷺ prayed over the Negus (the King of Abyssinia who died as a Muslim in his own land) with four takbirs (Sahih Muslim 963). This is the basis for the four-takbir structure that all four schools agree upon, though some minor differences exist in the recitations between them.

Wudu is required for salat al-janazah just as for any other prayer. A person without wudu cannot validly pray the janazah. The prayer is performed facing the qibla. If there are multiple deceased, they may be lined up in a row in front of the imam.

What to recite in each takbir

The scholars have detailed what to recite after each of the four takbirs. The following is based on the authentic narrations and the consensus position of the majority:

After the first takbir: recite Surah Al-Fatiha silently. This is the position of the Shafi'i, Hanbali, and Maliki schools based on the hadith: "There is no prayer for the one who does not recite Al-Fatiha" (Sahih al-Bukhari 756). The Hanafi school recites a du'a thana (opening praise) instead of Al-Fatiha, as they hold the janazah is a special prayer not covered by the general salah hadith. Both positions have scholarly backing.

After the second takbir: recite the Ibrahimiyyah salawat (the salawat on the Prophet ﷺ and Ibrahim (AS) that is recited in every tashahud): "Allahumma salli ala Muhammadin wa ala ali Muhammad, kama sallayta ala Ibrahim wa ala ali Ibrahim. Allahumma barik ala Muhammadin wa ala ali Muhammad, kama barakta ala Ibrahim wa ala ali Ibrahim, innaka hamidum majid."

After the third takbir: recite the du'a for the deceased. The most complete and comprehensive du'a narrated from the Prophet ﷺ is: "Allahumma ighfir lahu warhamhu wa 'afihi wa'fu 'anhu, wa akrim nuzulahu wa wassi' madkhalahu, waghsilhu bil-ma'i wa'l-thalji wal-barad..." (O Allah, forgive him and have mercy on him, grant him well-being and pardon him, honor his reception and widen his entrance, wash him with water, snow and hail...) (Sahih Muslim 963). If the deceased is a woman, the pronouns change to feminine. If the deceased is a child, a different du'a is used asking Allah to make the child a treasure and interceder for the parents.

After the fourth takbir: recite a brief du'a for the deceased and for the living Muslims. The Shafi'i school recommends: "Allahumma la tahrimna ajrahu wa la taftinna ba'dahu waghfir lana wa lahu" (O Allah, do not deprive us of his reward, do not put us to trial after him, and forgive us and him). Then give the tasleem to the right: "As-salamu alaykum wa rahmatullah."

Burial: sunnah and etiquette

The body is to be buried as soon as possible after the janazah prayer. Delay without necessity is disliked. The grave should be dug deep enough that the body is secure and no smell escapes, which the scholars estimate as approximately the height of a standing adult. The grave should ideally be dug in a Muslim graveyard.

The body is placed in the grave on its right side, facing the qibla. The Prophet ﷺ commanded this:

"The qibla is for the living and the dead." (Abu Dawud 2875) And specifically: "Lay him on his right side facing the qibla." (Sahih al-Bukhari 1350)

The one who places the body in the grave says: "Bismillah wa ala millati rasulillah" (In the name of Allah and upon the way of the Messenger of Allah) (Abu Dawud 3213, Tirmidhi 1046, authenticated). Once the body is in the grave, the knots of the kafan are loosened from the head and feet.

The grave is then filled with earth. Those present take three handfuls of earth and cast them in (Ibn Majah 1565, hasan). After burial, it is sunnah to stand at the grave briefly and make du'a for the deceased. The Prophet ﷺ would stand at the grave after burial and say: "Seek forgiveness for your brother and ask for him to be made firm, for he is now being questioned" (Abu Dawud 3221, authenticated by al-Albani).

The grave is raised slightly above the ground level (about a hand-span) to identify it as a grave and prevent it from being walked upon. This is the Sunnah practice. Building elaborate structures, domes, or mausoleums over graves is forbidden, as the Prophet ﷺ explicitly ordered the leveling of raised graves and the removal of constructed structures (Sahih Muslim 969).

Condolences and ta'ziya

Ta'ziya refers to offering condolences to the bereaved family. It is a sunnah act that brings comfort and fulfills a community obligation of care. The Prophet ﷺ said: "There is no believing person who condoles with his brother over a calamity except that Allah will clothe him in garments of honor on the Day of Resurrection" (Ibn Majah 1601, hasan).

The sunnah du'a for condolences, narrated by the Prophet ﷺ himself, is: "Inna lillahi ma akhatha, wa lahu ma a'ta, wa kullu shay'in indahu bi-ajalin musamma, faltasbir waltahtasib" (To Allah belongs what He took, and to Him belongs what He gave, and everything with Him has an appointed term, so be patient and seek the reward) (Tirmidhi 1073, hasan sahih).

Offering food to the family of the deceased for three days is itself a sunnah. When the Prophet ﷺ received news of the death of Ja'far ibn Abi Talib (RA), he said: "Prepare food for the family of Ja'far, for something has come upon them that is keeping them occupied" (Abu Dawud 3132, Tirmidhi 998, authenticated). This is a practical act of community solidarity at a moment when the bereaved family is consumed by grief and arrangements.

What is disliked and sometimes forbidden: gathering at the house of the deceased for a communal meal prepared by the family (as this places a burden on the very family that is grieving), and loud wailing or eulogizing the deceased with exaggerated praise. The Prophet ﷺ prohibited wailing (niyaha) over the dead (Sahih al-Bukhari 1291). Quiet weeping from genuine grief is entirely permitted and was itself practiced by the Prophet ﷺ when he wept at the death of his son Ibrahim (Sahih al-Bukhari 1303).

Visiting graves

Visiting graves is encouraged in Islam as a reminder of death and the hereafter. The Prophet ﷺ had initially prohibited visiting graves in the early period of Islam, but later explicitly permitted and encouraged it:

"I had forbidden you from visiting graves, but now visit them, for they remind you of the Hereafter." (Sahih Muslim 976)

When visiting graves, the sunnah is to greet the inhabitants of the grave with salam: "As-salamu alaykum ahl al-diyar min al-mu'minin wal-muslimin, wa inna in sha'a Allah bikum lahiqun, as'alullaha lana wa lakum al-afiyah" (Peace be upon you, O inhabitants of these dwellings from the believers and Muslims. We will, Allah willing, be joining you. I ask Allah for well-being for us and for you) (Sahih Muslim 975).

After the greeting, one makes du'a for the deceased, recites Quran (scholars differ on whether reciting Quran at graves and intending the reward for the deceased is permissible; the majority hold it is permissible and reaches the deceased), and reflects on one's own mortality. Visiting the graves of one's parents is considered an act of continued birr al-walidayn (filial piety) even after their death.

Prohibited practices

Several practices common in some Muslim cultures are either forbidden or strongly disliked in Islamic law:

Wailing and loud lamentation: the Prophet ﷺ said: "The deceased is punished in his grave on account of the wailing of his family over him" (Sahih al-Bukhari 1291). Scholars have interpreted this in various ways, but the clear principle is that excessive audible wailing is forbidden.

Building structures over graves: the Prophet ﷺ sent Ali (RA) to destroy every statue and every elevated grave (Sahih Muslim 969). Domes, shrines, and elaborate grave structures are forbidden, as they lead to practices that approach veneration of the dead.

Praying toward graves: the Prophet ﷺ said: "Do not pray toward graves and do not sit on them" (Sahih Muslim 972). The graves of even the most righteous people are not to become qiblas for prayer.

Cremation: burning the dead is absolutely forbidden in Islam. The Prophet ﷺ said: "No one should punish with fire except Allah" (Sahih al-Bukhari 3016). The body is to be buried with dignity in the earth.

Delaying burial without necessity: the Prophet ﷺ emphasized haste in burial. Keeping the body for days for family to arrive from distant places, while sometimes unavoidable in certain contemporary circumstances, goes against the spirit of the Sunnah of prompt burial.

FAQ

Is the janazah prayer obligatory?

Salat al-janazah is fard kifaya (a collective obligation). If enough Muslims in a community perform it, the obligation lifts from the rest. If no one performs it, every Muslim who knew about the death and was able to attend carries the sin. It is a communal religious duty to ensure every Muslim who dies receives the janazah prayer.

What do you recite in each of the 4 takbirs?

After the first takbir: recite Surah Al-Fatiha (majority position) or a du'a thana (Hanafi). After the second takbir: recite the Ibrahimiyyah salawat (same as in tashahud). After the third takbir: recite the du'a for the deceased beginning "Allahumma ighfir lahu warhamhu..." After the fourth takbir: recite a brief du'a, then give the salam to the right only.

How should a woman be shrouded (kafan)?

A woman is shrouded in five cloths: an izar (lower wrap), a khimar (head covering), a qamis (shirt), and two outer sheets. This is more than a man's three-cloth kafan because the woman's awrah in death retains its additional coverage. All cloths should be white and clean.

Is it permissible to visit graves?

Yes. The Prophet ﷺ said: "I had forbidden you from visiting graves, but now visit them, for they remind you of the Hereafter" (Sahih Muslim 976). What is prohibited: excessive wailing, building structures over graves, and any act of worship directed toward the grave itself.

What should be said to the family of the deceased?

The sunnah condolence is: "Inna lillahi ma akhatha, wa lahu ma a'ta, wa kullu shay'in indahu bi-ajalin musamma, faltasbir waltahtasib" (Tirmidhi 1073). Offering food to the bereaved family for three days is also a sunnah act of communal care.

Keep every prayer on time

FivePrayer gives you precise prayer times and reminders, every day.

Accurate prayer times for all five daily prayers, calculated for your exact location. Free, no ads, no tracking. Available on iOS, Android, and Chrome.

Download on theApp Store
Get it onGoogle Play
Also onChrome