[Machine] To wash the one who washes the deceased, and to perform ablution for the one who enters his grave at the time of burial, and not to perform ablution on anyone other than those who prayed for him, or who carried his funeral procession, or who walked with it. It has been reported that Ibn al-Musayyib said, "If I had known that he was impure, I would not have touched him." And it was narrated from Hudhayfah ibn al-Yaman, elevated, concerning that.
أَنْ يَغْتَسِلَ مَنْ غَسَّلَ مَيِّتًا وَيَتَوَضَّأَ مَنْ نَزَلَ فِي حُفْرَتِهِ حِينَ يُدْفَنُ وَلَا وُضُوءَ عَلَى أَحَدٍ مِنْ غَيْرِ ذَلِكَ مِمَّنْ صَلَّى عَلَيْهِ وَلَا مِمَّنْ حَمَلَ جِنَازَتَهُ وَلَا مِمَّنْ مَشَى مَعَهَا وَقَدْ مَضَى عَنِ ابْنِ الْمُسَيِّبِ أَنَّهُ قَالَ لَوْ عَلِمْتُ أَنَّهُ نَجِسٌ لَمْ أَمَسَّهُ وَرُوِيَ فِي ذَلِكَ عَنْ حُذَيْفَةَ بْنِ الْيَمَانِ مَرْفُوعًا