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

Jami` at-Tirmidhi Book 10, Hadith 50