كتاب الصلاة
4  
The Book of Prayers
(19)
Chapter: Following The Imam
(19)
باب ائْتِمَامِ الْمَأْمُومِ بِالإِمَامِ ‏
Sahih Muslim 412 a

'A'isha reported:

The Messenger of Allah (ﷺ) fell ill and some of his Companions came to inquire after his health. The Messenger of Allah (ﷺ) said prayer sitting, while (his Companions) said it (behind him) standing. He (the Holy Prophet) directed them by his gesture to sit down, and they sat down (in prayer). After finishing the (prayer) he (the Holy Prophet) said: The Imam is appointed so that he should be followed, so bow down when he bows down, and rise upp when he rises up and say (prayer) sitting when he (the Imam) says (it) sitting.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدَةُ بْنُ سُلَيْمَانَ، عَنْ هِشَامٍ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، قَالَتِ اشْتَكَى رَسُولُ اللَّهِ صلى الله عليه وسلم فَدَخَلَ عَلَيْهِ نَاسٌ مِنْ أَصْحَابِهِ يَعُودُونَهُ فَصَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم جَالِسًا فَصَلَّوْا بِصَلاَتِهِ قِيَامًا فَأَشَارَ إِلَيْهِمْ أَنِ اجْلِسُوا ‏.‏ فَجَلَسُوا فَلَمَّا انْصَرَفَ قَالَ ‏ "‏ إِنَّمَا جُعِلَ الإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا رَكَعَ فَارْكَعُوا وَإِذَا رَفَعَ فَارْفَعُوا وَإِذَا صَلَّى جَالِسًا فَصَلُّوا جُلُوسًا ‏"‏ ‏.‏
Reference : Sahih Muslim 412a
In-book reference : Book 4, Hadith 88
USC-MSA web (English) reference : Book 4, Hadith 822
  (deprecated numbering scheme)