Sunan an-Nasa'i, Book 21, Hadith 99 (Nasa'i 1921)

It was narrated form 'Amir bin Rabi'ah Al-'Adawi that the Messenger of Allah said:

"When you see a funeral, stand up until it has passed you, or (the body) is placed (in the grave)."