Carries a dead body to the graveyard

Q 3: What is the ruling on a person who washes the body of a dead person?

A: He is recommended to perform Ghusl (ritual bath) or Wudu' (ablution), but he is not obliged to do so unless he touches the private parts of the dead person.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.