The Messenger of Allah ﷺ was brought a riding animal while he was accompanying a funeral procession, but he refused to ride it. When he departed, a riding animal was brought to him and he mounted it. He was asked about this, and he replied, "The angels were walking, so I would not ride while they were walking. When they left, I rode."
حدثنا يحيى بن موسى البلخي أخبرنا عبد الرزاق أخبرنا معمر عن يحيى بن أبي كثير عن أبي سلمة بن عبد الرحمن بن عوف
أن رسول الله ﷺ أتي بدابة وهو مع الجنازة فأبى أن يركبها فلما انصرف أتي بدابة فركب فقيل له فقال إن الملائكة كانت تمشي فلم أكن لأركب وهم يمشون فلما ذهبوا ركبت
[Its chain of transmission is daif] Bayhaqi narrated it 4/23 from the hadith of Abdul-Razzaq through this route. Hakim graded it sahih according to the conditions of the two Shaykhs 1/355, and Dhahabi agreed with him. Albani also graded it sahih (Ahkam al-Janaiz, issue 52). Yahya bin Abu Kathir is a mudallis, and he narrated it using the ambiguous form "an."