Sahih Bukhari · Hadith 1308
Funerals (Al-Janaa'iz) - كتاب الجنائز
حدثنا قتيبة بن سعيد، حدثنا الليث، عن نافع، عن ابن عمر رضى الله عنهما عن عامر بن ربيعة رضى الله عنه عن النبي صلى الله عليه وسلم قال " إذا رأى أحدكم جنازة فإن لم يكن ماشيا معها فليقم حتى يخلفها، أو تخلفه أو توضع من قبل أن تخلفه ".
Narrated 'Amir bin Rabi`a: The Prophet said, "If any one of you see a funeral procession and he is not going along with it, then he should stand and remain standing till he gets behind it, or it leaves him behind, or the coffin is put down before it goes ahead of him . "
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).