It is narrated on the authority of 'Amir Ibn Rabi'a (RA) that the Prophet (ﷺ) said: Whenever you see a funeral procession, stand up for that until it moves away or is lowered on the ground.
And it was narrated to us by Qutaybah ibn Sa'id, who said: Lays narrated to us. And it was narrated to us by Muhammad ibn Rumh, who informed us: Al-Layth. And Harmalah narrated to me, who informed us: Ibn Wahb, who informed me: Yunus, all from Ibn Shihab with this chain of narration. And in the narration of Yunus, that he heard the Messenger of Allah, peace and blessings be upon him, say. And it was narrated to us by Qutaybah ibn Sa'id, who said: Lays narrated to us. And it was narrated to us by Ibn Rumh, who informed us: Al-Layth, from Nafi', from Ibn Umar, from Amir ibn Rabi'ah, from the Prophet, peace and blessings be upon him, who said: "When one of you sees a funeral procession, if he is not walking with it, let him stand until it passes him, or until it is placed down before it passes him."
It is reported on the authority of Ibn Juraij that the Holy Prophet (ﷺ) said: Should anyone amongst you see a bier he must stand up so long as it is within sight in case he does not intend to follow it.
It is narrated on the authority of Abu Sa'id al-Khudri that the Holy Prophet (ﷺ) said: When you follow a bier, do not sit until it is placed on the (ground).
It is narrated on the authority of Abu Sa'id al-Khudri that the Holy Prophet (ﷺ) said: Whenever you come across a bier you should stand up, and he who follows it should not sit down till it is placed on the ground.
It is narrated on the authority of Jabir ibn 'Abdullah (RA) : There passed a bier and the Holy Prophet (ﷺ) stood up for it and we also stood up along with him. We said: Messenger of Allah, that was the bier of a Jewess. Upon this he remarked: Verily, death is a matter of consternation, so whenever you come across a bier stand up.
It is narrated on the authority of Ibn Abu Laila that while Qais bin Sa'd and Sahl bin Hunaif were both in Qadislyya a bier passed by them and they both stood up. They were told that it was the bier of one of the people of the land (non-Muslim). They said that a bier passed before the Holy Prophet (ﷺ) and he stood up. He was told that he (the dead man) was a Jew. Upon this he remarked: Was he not a human being or did he not have a soul?