Yahya related to me from Malik from Hisham ibn Urwa from his father that A'isha, the wife of the Prophet ﷺ said, "The Messenger of Allah ﷺ prayed while he was ill. He prayed sitting, and some people prayed behind him standing, and he indicated to them to sit down. When he left, he said, 'The imam is only appointed to be followed. When he goes into ruku, go into ruku and when he rises, rise and if he prays sitting, pray sitting .' "
عَنْ عَائِشَةَ زَوْجِ النَّبِيِّ ﷺ أَنَّهَا قَالَتْ صَلَّى رَسُولُ اللَّهِ ﷺ وَهُوَ شَاكٍ فَصَلَّى جَالِسًا وَصَلَّى وَرَاءَهُ قَوْمٌ قِيَامًا فَأَشَارَ إِلَيْهِمْ أَنِ اجْلِسُوا فَلَمَّا انْصَرَفَ قَالَ إِنَّمَا جُعِلَ الإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا رَكَعَ فَارْكَعُوا وَإِذَا رَفَعَ فَارْفَعُوا وَإِذَا صَلَّى جَالِسًا فَصَلُّوا جُلُوسًا