Jami` at-Tirmidhi, Book 10, Hadith 48 (Tirmidhi 1014)
Thawban narrated:
"We went with the Prophet (following) a funeral. He saw people riding so he said: 'Are you not ashamed? Indeed Allah's angels are on their feet, while you are on the backs of your beasts'"