[Machine] Narrated by the Prophet ﷺ : Whoever washes a dead body should then perform ablution. This is the statement of the Qadi, and in another narration by the Hafiz, he said that the Messenger of Allah ﷺ said: "From washing the dead body is the washing, and from carrying it is the ablution." There is no argument based on the opinions of Ibn Lahiah and Hunayn bin Abi Hakim. The preserved narration from the Hadith of Abu Salamah, which Al-Bukhari referred to, is attributed to Abu Huraira.
عَنِ النَّبِيِّ ﷺ مَنْ غَسَّلَ مَيِّتًا فَلْيَغْتَسِلْ هَذَا لَفْظُ الْقَاضِي وَفِي رِوَايَةِ الْحَافِظِ قَالَ قَالَ رَسُولُ اللهِ ﷺ مِنْ غُسْلِ الْمَيِّتَ الْغُسْلُ وَمِنْ حَمْلِهِ الْوُضُوءُ ابْنُ لَهِيعَةَ وَحُنَيْنُ بْنُ أَبِي حَكِيمٍ لَا يُحْتَجُّ بِهِمَا وَالْمَحْفُوظُ مِنْ حَدِيثِ أَبِي سَلَمَةَ مَا أَشَارَ إِلَيْهِ الْبُخَارِيُّ مَوْقُوفٌ مِنْ قَوْلِ أَبِي هُرَيْرَةَ