Mishkat al-Masabih 1139
وَعَنْ أَنَسٍ: أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَكِبَ فَرَسًا فَصُرِعَ عَنْهُ فَجُحِشَ شِقُّهُ الْأَيْمَنُ فَصَلَّى صَلَاةً مِنَ الصَّلَوَاتِ وَهُوَ قَاعِدٌ فَصَلَّيْنَا وَرَاءَهُ قُعُودًا فَلَمَّا انْصَرَفَ قَالَ: «إِنَّمَا جُعِلَ الْإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا صَلَّى قَائِما فصلوا قيَاما فَإِذا رَكَعَ فَارْكَعُوا وَإِذَا رَفَعَ فَارْفَعُوا وَإِذَا قَالَ سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ فَقُولُوا رَبنَا وَلَك الْحَمد وَإِذا صلى قَائِما فصلوا قيَاما وَإِذَا صَلَّى جَالِسًا فَصَلُّوا جُلُوسًا أَجْمَعُونَ» قَالَ الْحُمَيْدِيُّ: قَوْلُهُ: «إِذَا صَلَّى جَالِسًا فَصَلُّوا جُلُوسًا» هُوَ فِي مَرَضِهِ الْقَدِيمِ ثُمَّ صَلَّى بَعْدَ ذَلِكَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ جَالِسًا وَالنَّاسُ خَلْفَهُ قِيَامٌ لَمْ يَأْمُرْهُمْ بِالْقُعُودِ وَإِنَّمَا يُؤْخَذُ بِالْآخِرِ فَالْآخِرِ مِنْ فِعْلِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ. هَذَا لَفْظُ الْبُخَارِيِّ. وَاتَّفَقَ مُسْلِمٌ إِلَى أَجْمَعُونَ. وَزَادَ فِي رِوَايَةٍ: «فَلَا تختلفوا عَلَيْهِ وَإِذا سجد فاسجدوا»
From Anas: The Messenger of Allah ﷺ rode a horse and was thrown from it, and his right side was grazed. He prayed one of the prayers sitting, and we prayed behind him sitting. When he finished, he said: "The imam is only appointed to be followed. When he prays standing, pray standing; when he bows, bow; when he rises, rise; when he says 'Samiʿa Allahu liman hamidah', say: 'Our Lord, and to You be praise'; when he prays standing, pray standing; and when he prays sitting, all of you pray sitting." Al-Humaydi said: His words "when he prays sitting, pray sitting" were in his earlier illness; afterwards the Prophet ﷺ prayed sitting while the people behind him were standing, and he did not command them to sit. Only the latest, then the latest, of the Prophet's ﷺ actions is taken. This is the wording of al-Bukhari. Muslim agreed up to "all of you", and added in a narration: "So do not differ from him, and when he prostrates, prostrate."