Full Sharh — Mishkat al-Masabih 1587
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " من تبع جَنَازَة وحلمها ثَلَاثَ مَرَّاتٍ: فَقَدْ قَضَى مَا عَلَيْهِ مِنْ حَقِّهَا ". رَوَاهُ التِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ غَرِيبٌ وَقَدْ رَوَى فِي «شَرْحِ السُّنَّةِ» : أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ حَمَلَ جَنَازَةَ سَعْدِ ابْن معَاذ بَين العمودين
English Translation
Abu Huraira reported God’s messenger as saying, “He who follows a bier and carries it three times has accomplished what is ’due to it from him." Tirmidhi transmitted it, saying that this is a gharib tradition. In Sharh as-sunna it is reported that the Prophet carried the bier of Sa‘d b. Mu'adh between the two poles.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Funerals
Hadith Number
1587