Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "When you see a funeral procession, stand up, and whoever follows it should not sit down until it is placed on the ground."

Azami 3654

Sahih

عن أبي سعيد الخدري

أن رسول الله ﷺ قال: إذا رأيتم الجنازة فقوموا، فمن تبعها فلا يجلس حتى توضع.

الأعظمي 3654صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Deceased, carrying the funeral bier, and standing for it
Section
Standing for the funeral
Numbering
Jami al-Kamil 3654 (2nd edition)
Azami 3654