“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?’”
Sunan Ibn Majah Book 6, Hadith 48