It is necessary that the ablution given to the corpse be of the tartibi kind...
It is necessary that the ablution given to the corpse be of the tartibi kind: that is, the body should be washed in proper sequence with the head and the neck first, then the right side of the body, and then the left side. The person washing the corpse must be of the same gender as the dead person. So, a male should wash a male corpse, and a female should wash a female corpse.
However, husband and wife are allowed to perform ablution to one another; although it is better that the washing be done with the body covered with a sheet of cloth. If a person of the same gender is not available, then, based on obligatory precaution, those of the opposite gender who are mahram to the deceased can perform it.
Mahram means those relations with whom marriage is forbidden because of blood relationship or nursing (suckling) relationship or marriage, like brother and sister [or son-in-law and mother-in-law]. However, it is better that the washing be done with the body covered with a sheet of cloth.
Unity of gender is not required when giving ablution to a corpse of a child that had not reached the age of discerning the right and wrong.[^3] Based on obligatory precaution, the person performing ablution must be a mu’min . If neither a mu’min of the same gender as the deceased is available nor a mahram [even of the opposite gender], it is permissible that a Muslim of the same gender can wash the deceased.
If even a Muslim is not available, then the deceased can be washed by an Ahlul Kitab person [that is, a Jew, a Christian or a Zoroastrian] of the same gender with the condition that the person should first wash himself and then perform ablution to the corpse. If even an Ahlul Kitab person of the same gender is not available, the duty of performing ablution to the corpse is lifted, and the deceased should be buried without it.
Tahnit and Shrouding After giving the ablution, it is wajib to do tahnit. Tahnit means to rub camphour powder (which has maintained its fragrance) on the seven parts of the body that touch the ground in a posture of sajdah: the forehead, the palms, the knees, and feet toes. It is preferable to start tahnit with the forehead and end with the palms. After tahnit, the deceased has to be shrouded in three pieces of cloth as follows: a.
The mi’zar: a piece of cloth [like an apron] that must cover the body between the navel and the knees, based on obligatory precaution. b.