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 standing behind him. He gestured to them to sit down. When he finished, he said, "The imam is appointed only to be followed. When he bows, bow, and when he rises, rise."

Bukhari 1113

Sahih

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

عن عائشة رضي الله عنها أنها قالت

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

البخاري 1113صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Shortening
Chapter
Prayer of the one sitting
Numbering
Darussalam 1113
Bukhari 1113