Anas bin Malik reported,

The Messenger of Allah ﷺ rode a horse and was thrown from it, scraping his right side. He prayed one of the prayers while seated, and we prayed behind him while seated as well. When he finished, he said, "The imam is appointed only to be followed. So when he prays standing, pray standing. When he bows, bow. When he rises, rise. When he says, 'Allah hears whoever praises Him,' say, 'Our Lord, to You belongs all praise.' And when he prays sitting, all of you pray sitting."

Azami 2280

Sahih

عن أنس بن مالك

أن رسول الله ﷺ ركب فرسا فصرع، فجحش شقه الأيمن فصلى صلاة من الصلوات وهو قاعد وصلينا وراءه قعودا فلما انصرف قال: إنما جعل الإمام ليؤتم به، فإذا صلى قائما فصلوا قياما، وإذا ركع فاركعوا، وإذا رفع فارفعوا، وإذا قال: سمع الله لمن حمده، فقولوا: ربنا ولك الحمد، وإذا صلى جالسا فصلوا جلوسا أجمعون.

الأعظمي 2280صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
When the imam prays sitting, they should pray sitting
Numbering
Jami al-Kamil 2280 (2nd edition)
Azami 2280