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: "For washing him there is a bath, and for carrying him there is ablution," meaning the dead person and the bier.
That is how he narrated it, and I do not think he preserved it accurately.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 1437