Ayesha reported,

The Messenger of Allah ﷺ prayed during his illness while seated, and a group of people behind him prayed standing. He gestured to them to sit down. When he finished his prayer, he said, "The imam is appointed only to be followed. When he bows, bow. When he rises, rise. And when he prays seated, pray seated."

Ahmad 24303

Sahih

حدثنا ابن نمير عن هشام عن أبيه

عن عائشة

أن رسول الله ﷺ صلى في مرضه وهو جالس فصلى وخلفه قوم قياما فأشار إليهم أن اجلسوا فلما قضى صلاته قال إنما الإمام ليؤتم به فإذا ركع فاركعوا وإذا رفع فارفعوا وإذا صلى جالسا فصلوا جلوسا

أحمد 24303صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Ayesha bint Siddiq
Numbering
Darussalam 24303