It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever washes a dead person, let him take a bath, and whoever carries him, let him perform ablution."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 1434