Jami` at-Tirmidhi Book 10, Hadith 50
"The Prophet followed the funeral of Ibn Ad-Dahdah walking and he returned on horseback."
"We were with the Prophet (following) the funeral of Ibn Ad-Dahbah, and he was on a horse that was walking quickly, and we were around him, and he was trotting."
The Prophet said: "Hurry up with the funeral (procession) for if it was good, you are advancing it to good, and if it was evil, then you are taking it off your necks."