“The Messenger of Allah ﷺ fell ill and some of his Companions came to visit him. The Messenger of Allah ﷺ performed prayer while sitting down, and they prayed behind him standing up. He gestured them to sit down, and when he finished he said: ‘The Imam is appointed to be followed. When he bows, then bow; when he stands up again, then stand up, and if he prays sitting down then pray sitting down.’” (Using translation from Ibn Mājah 1237)
أَنَّ رَسُولَ اللهِ ﷺ دَخَلَ عَلَيْهِ النَّاسُ فِي مَرَضِهِ يَعُودُونَهُ فَصَلَّى بِهِمْ جَالِسًا فَجَعَلُوا يُصَلُّونَ قِيَامًا فَأَشَارَ إِلَيْهِمْ أَنْ اجْلِسُوا فَلَمَّا فَرَغَ قَالَ إِنَّمَا جُعِلَ الْإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا رَكَعَ فَارْكَعُوا وَإِذَا رَفَعَ فَارْفَعُوا وَإِنْ صَلَّى جَالِسًا فَصَلُّوا جُلُوسًا