English : Vol. 1, Book 5, Hadith 1239
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّمَا جُعِلَ الإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا كَبَّرَ فَكَبِّرُوا وَإِذَا رَكَعَ فَارْكَعُوا وَإِذَا قَالَ سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ فَقُولُوا رَبَّنَا وَلَكَ الْحَمْدُ وَإِنْ صَلَّى قَائِمًا فَصَلُّوا قِيَامًا وَإِنْ صَلَّى قَاعِدًا فَصَلُّوا قُعُودًا "
It was narrated that Abu Hurairah said:
"The Messenger of Allah (ﷺ) said: "The Imam is appointed to be followed. When he says Allahu Akbar, then say Allahu Akbar; when he bows, then bow; when he says Sami' Allahu liman hamidah, then say Rabbana wa lakal-hamd; when he prostrates then prostrate; if he prays standing, then pray standing, and if he prays sitting down then pray sitting down."
Full reference and source
English : Vol. 1, Book 5, Hadith 1239 Arabic : Book 5, Hadith 1297
View source on Sunnah.com (opens in a new tab)