The Messenger of Allah ﷺ prayed in his house while he was unwell, sitting down, and a group prayed behind him standing. He gestured to them to sit. When he finished, he said, "The imam is appointed only to be followed. When he bows, bow, and when he rises, rise."
حدثنا إسماعيل بن أبي أويس قال حدثني مالك عن هشام عن أبيه
صلى رسول الله ﷺ في بيته وهو شاك جالسا وصلى وراءه قوم قياما فأشار إليهم أن اجلسوا فلما انصرف قال إنما جعل الإمام ليؤتم به فإذا ركع فاركعوا وإذا رفع فارفعوا