Language:
كتاب الأذان
10  
Call to Prayers (Adhaan)
(51)
Chapter: The Imam is appointed to be followed
(51)
باب إِنَّمَا جُعِلَ الإِمَامُ لِيُؤْتَمَّ بِهِ
Sahih al-Bukhari 688

Narrated Aisha:

the mother of the believers: Allah's Messenger (ﷺ) during his illness prayed at his house while sitting whereas some people prayed behind him standing. The Prophet (ﷺ) beckoned them to sit down. On completion of the prayer, he said, 'The Imam is to be followed: bow when he bows, raise up your heads (stand erect) when he raises his head and when he says, 'Sami`a l-lahu liman hamidah' (Allah heard those who sent praises to Him) say then 'Rabbana wa laka l-hamd' (O our Lord! All the praises are for You), and if he prays sitting then pray sitting."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ أُمِّ الْمُؤْمِنِينَ، أَنَّهَا قَالَتْ صَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم فِي بَيْتِهِ وَهْوَ شَاكٍ، فَصَلَّى جَالِسًا وَصَلَّى وَرَاءَهُ قَوْمٌ قِيَامًا، فَأَشَارَ إِلَيْهِمْ أَنِ اجْلِسُوا، فَلَمَّا انْصَرَفَ قَالَ ‏ "‏ إِنَّمَا جُعِلَ الإِمَامُ لِيُؤْتَمَّ بِهِ، فَإِذَا رَكَعَ فَارْكَعُوا، وَإِذَا رَفَعَ فَارْفَعُوا، وَإِذَا صَلَّى جَالِسًا فَصَلُّوا جُلُوسًا ‏"‏‏.‏
Reference : Sahih al-Bukhari 688
In-book reference : Book 10, Hadith 82
USC-MSA web (English) reference : Vol. 1, Book 11, Hadith 656
  (deprecated numbering scheme)