Sunan Ibn Majah, Book 6, Hadith 48 (Ibn Majah 1480)

It was narrated that Thawban, the freed slave of the Messenger of Allah (ﷺ), said:

“The Messenger of Allah (ﷺ) saw some people riding on their animals in a funeral (procession). He said: ‘Do you not feel ashamed that the angels of Allah are walking on foot and you are riding?’”