Ayesha reported,

The Messenger of Allah ﷺ prayed in his house while he was ill, so he prayed sitting down, and a group of people prayed behind him standing. He gestured to them to sit down. When he finished, he said, "The imam is appointed only to be followed. So when he bows, bow, when he rises, rise, and when he prays sitting, pray sitting."

Bukhari 688

Sahih

حدثنا عبد الله بن يوسف قال أخبرنا مالك عن هشام بن عروة عن أبيه

عن عائشة أم المؤمنين أنها قالت

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

البخاري 688صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Imam is appointed to be followed
Numbering
Darussalam 688
Bukhari 688