Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:1450Abū Saʿīd b. Abū ʿAmr > Abū Muḥammad al-Muzanī > ʿAlī b. Muḥammad b. ʿĪsá > Abū al-Yamān > Shuʿayb b. Abū Ḥamzah > al-Zuhrī > Saʿīd b. al-Musayyib > from al-Sunnah

[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.  

البيهقي:١٤٥٠أَخْبَرَنَاهُ أَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو أنا أَبُو مُحَمَّدٍ الْمُزَنِيُّ أنا عَلِيُّ بْنُ مُحَمَّدِ بْنِ عِيسَى ثنا أَبُو الْيَمَانِ أَخْبَرَنِي شُعَيْبُ بْنُ أَبِي حَمْزَةَ عَنِ الزُّهْرِيِّ قَالَ حَدَّثَنِي سَعِيدُ بْنُ الْمُسَيِّبِ أَنَّ مِنَ السُّنَّةِ

أَنْ يَغْتَسِلَ مَنْ غَسَّلَ مَيِّتًا وَيَتَوَضَّأَ مَنْ نَزَلَ فِي حُفْرَتِهِ حِينَ يُدْفَنُ وَلَا وُضُوءَ عَلَى أَحَدٍ مِنْ غَيْرِ ذَلِكَ مِمَّنْ صَلَّى عَلَيْهِ وَلَا مِمَّنْ حَمَلَ جِنَازَتَهُ وَلَا مِمَّنْ مَشَى مَعَهَا وَقَدْ مَضَى عَنِ ابْنِ الْمُسَيِّبِ أَنَّهُ قَالَ لَوْ عَلِمْتُ أَنَّهُ نَجِسٌ لَمْ أَمَسَّهُ وَرُوِيَ فِي ذَلِكَ عَنْ حُذَيْفَةَ بْنِ الْيَمَانِ مَرْفُوعًا