Amir bin Rabia reported,

The Prophet ﷺ said, "When one of you sees a funeral procession, if he is not walking with it, let him stand until it passes him or he passes it, or until the bier is set down before it passes him."

Bukhari 1308

Sahih

حدثنا قتيبة بن سعيد حدثنا الليث عن نافع عن ابن عمر رضي الله عنهما

عن عامر بن ربيعة رضي الله عنه

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

البخاري 1308صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
When to sit down after standing for a funeral
Numbering
Darussalam 1308
Bukhari 1308