Husband and a wife can...
Husband and a wife can, however, bathe the dead body of each other, although the recommended precaution is that they should also avoid doing so, if possible. 566. A man can bathe the dead body of a girl who is not more than 3 years old. Similarly a woman can bathe the dead body of a boy who is not more than 3 years old. 567.
If no man is available to bathe the dead body of a man his kinswomen who are also his mahram (one with whom marriage is prohibited, for example, mother, sister, paternal aunt and maternal aunt) or those women who become his mahram as a consequence of nursing can bathe his dead body after covering it with cloth etc.
Similarly if no woman is available to bathe the dead body of a woman her kinsmen who are also her mahram or have become mahram as a consequence of nursing can bathe her dead body which is covered with her dress. 568. If a man bathes the dead body of a man or a woman bathes the dead body of a woman it is better that with the exception of private parts the body be bare. 569. It is unlawful to look at the private parts of a corpse and if the person bathing it looks at those parts he commits a sin.
But by his doing so the bathing does not become void. 570. If some part of the corpse is impure it should, on the basis of precaution, be washed and purified before actual bathing commences. And it is better that before the corpse is bathed it should be clean and free from all other impurities. 571. Bathing of a dead body is the same as the bathing for ceremonial uncleanness (Janabat).
And the obligatory precaution is that so long as sequence bath is possible the dead body should not be bathed in immersion way. And even in the case of sequence bath it is necessary that the body should be bathed from the right side to the left side. And the recommended precaution is that, if possible, none of the three parts of the body should be immersed in the water and instead of doing so water should be poured on the dead body. 572.
If someone dies in the state of menses or ceremonial uncleanness it is sufficient to give him/her the bath of the corpse and bathing on account of menstruation or ceremonial uncleanness is not necessary. 573. It is unlawful to charge wages for bathing a dead body and if a person bathes a dead body to get wages the bathing would be void. However, it is not unlawful to take wages for preliminary requirements of the performance of the bathing. 574.