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)
قَالَ رَسُولُ اللهِ ﷺ مَنْ غَسَّلَ مَيِّتًا فَلْيَغْتَسِلْ وَمَنْ حَمَلَهُ فَلْيَتَوَضَّأْ