Amir bin Rabia reported,

From the Prophet ﷺ. Hisham bin Ammar narrated to us, Sufyan narrated to us, from Zuhri, from Salim, from his father, from Amir bin Rabia, who heard him relate from the Prophet ﷺ that he said, "When you see a funeral procession, stand up for it until it passes you or is set down."

Ibn Majah 1542

Sahih

حدثنا محمد بن رمح أنبأنا الليث بن سعد عن نافع عن ابن عمر

عن عامر بن ربيعة

عن النبي ﷺ ح و حدثنا هشام بن عمار حدثنا سفيان عن الزهري عن سالم عن أبيه عن عامر بن ربيعة سمعه يحدث عن النبي ﷺ قال إذا رأيتم الجنازة فقوموا لها حتى تخلفكم أو توضع

ابن ماجه 1542صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Funerals
Chapter
Standing for the funeral
Numbering
Darussalam 1542
Ibn Majah 1542