The Messenger of Allah ﷺ said: He who washes the dead should take a bath, and he who carries him should perform ablution. (Using translation from Abū Dāʾūd 3161)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ مَنْ غَسَّلَ مَيِّتًا فَلْيَغْتَسِلْ وَمَنْ حَمَلَهُ فَلْيَتَوَضَّأْ