Narrated Jabir bin Samurah: The Prophet ﷺ offered funeral prayer over Ibn al-Dahdah while we were present. He was then brought a horse, and it was tied until he rode it. It then began to gallop and we were running around it.
Related hadith on this topic
Explanation & Benefits
Hafiz Muhammad Ameen
Urdu marginal note:
It is permissible to return riding (on a mount) after performing the funeral prayer. There is no difference of opinion in this matter. It is also permissible to go (to the funeral) riding. For details, see the benefits and issues of Hadith: 1944.
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 2028