The Prophet (peace and blessings be upon him) said: "Whoever washes the deceased should himself take a ritual bath (ghusl)."