Ali bin Abu Talib reported,

The Messenger of Allah ﷺ used to stand for a funeral procession, but later he sat.In another narration, Waqid bin Amr bin Saad bin Muaz said, Nafi bin Jubayr saw me standing while we were at a funeral, and he was sitting waiting for the bier to be set down. He said to me, "What makes you stand?"I replied, "I am waiting for the bier to be set down, because of what Abu Saeed Khudri reported."Nafi said, "Masud bin Hakam told me, on the authority of Ali bin Abu Talib, that he said, 'The Messenger of Allah ﷺ used to stand, then he sat.'"

Azami 3663

Sahih

عن علي بن أبي طالب

أن رسول الله ﷺ كان يقوم في الجنازة، ثم جلس، بعد. وفي رواية: عن واقد بن عمرو بن سعد بن معاذ أنه قال: رآني نافع بن جبير، ونحن في جنازة قائما، وقد جلس ينتظر أن توضع الجنازة، فقال لي: ما يقيمك؟ فقلت: أنتظر أن توضع الجنازة لما يحدث أبو سعيد الخدري، فقال نافع: فإن مسعود بن الحكم حدثني عن علي بن أبي طالب أنه قال: قام رسول الله ﷺ ثم قعد.

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