Sayyiduna Amir bin Rabi’ah (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings be upon him) said: “When you see a funeral procession, stand up for it (out of fear of death) until it passes by you or is placed down.”
Hadith Referenceالمنتقى ابن الجارود / كتاب الجنائز / 528