Jabir bin Abdullah reported,

The Messenger of Allah ﷺ fell ill, so we prayed behind him while he was seated, and Abu Bakr was relaying his takbir to the people. He turned toward us and saw us standing, so he gestured for us to sit, and we performed the prayer with him while seated.When he gave the closing salam, he said, "You were about to do just now what the Persians and Romans do. They stand before their kings while the kings remain seated. Do not do this. Follow your imams. If he prays standing, then pray standing. If he prays seated, then pray seated."

Azami 2283

Sahih

عن جابر قال

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

الأعظمي 2283صحيح
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 2283 (2nd edition)
Azami 2283