Sunan Abi Dawud

Hadith #3172

Narrated 'Amir b. Rabi'ah:The Prophet (ﷺ) as saying: When you see a funeral, stand up for it till it leaves you behind or it is placed (on the ground)