The Law of Washing the Deceased in Islam: Exempt Conditions
In Islam, washing the deceased Muslim is a communal obligation (fardu kifayah), a collective duty for the living. However, there are certain conditions where this obligation does not apply.
Those who do not need to be washed include martyrs who die on the battlefield and miscarried fetuses, with specific details based on age and signs of life. Additionally, conditions such as a body that is burned, missing, or infected with a dangerous contagious disease can also be exceptions.
Regarding Muslims whose funeral prayers are not performed, this applies only to those who deny the obligation of prayer and are thus considered apostates. Meanwhile, those who neglect prayer due to forgetfulness or laziness without denial must still have their funeral prayers performed like other Muslims, according to the majority view of scholars.
https://mozaik.inilah.com/dakw