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
Hadith No. 1915
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Sahih - Agreed Upon