It was narrated from 'Amir bin Rabi'ah that the Prophet said:
"When any one of you sees a funeral and is not walking with it, let him stand up until it has passed him, or until (the body) is placed (in the grave) before if passes him."
Reference: Sunan an-Nasa'i 1915 In-book : Book 21, Hadith 98 English translation : Vol. 3, Book 21, Hadith 1916
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.