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.
tirmidhi:1014ʿAbdullāh b. al-Ṣabbāḥ al-Hāshimī > Abū Qutaybah > al-Jarrāḥ > Simāk > Jābir b. Samurah

"The Prophet followed the funeral of Ibn Ad-Dahdah walking and he returned on horseback."  

Abū ʿĪsá said that this Ḥadīth is Ḥasan-Ṣaḥīḥ.
الترمذي:١٠١٤حَدَّثَنَا عَبْدُ اللَّهِ بْنُ الصَّبَّاحِ الْهَاشِمِيُّ حَدَّثَنَا أَبُو قُتَيْبَةَ عَنِ الْجَرَّاحِ عَنْ سِمَاكٍ عَنْ جَابِرِ بْنِ سَمُرَةَ

أَنَّ النَّبِيَّ ﷺ اتَّبَعَ جَنَازَةَ أَبِي الدَّحْدَاحِ مَاشِيًا وَرَجَعَ عَلَى فَرَسٍ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ