CHAPTER: Riding During A Funeral.
Narrated Thawban: An animal was brought to the Messenger of Allah صلی اللہ علیہ وسلم while he was going with a funeral. He refused to ride on it. When the funeral was away, the animal was brought to him and he rode on it. He was asked about it. He said: The angels were on their feet. I was not to ride while they were walking. When they went away, I rode.
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.