حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، وَمُسْلِمُ بْنُ إِبْرَاهِيمَ، - الْمَعْنَى - عَنْ وُهَيْبٍ، عَنْ مُصْعَبِ بْنِ مُحَمَّدٍ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏إِنَّمَا جُعِلَ الإِمَامُ لِيُؤْتَمَّ بِهِ فَإِذَا كَبَّرَ فَكَبِّرُوا وَلاَ تُكَبِّرُوا حَتَّى يُكَبِّرَ وَإِذَا رَكَعَ فَارْكَعُوا وَلاَ تَرْكَعُوا حَتَّى يَرْكَعَ وَإِذَا قَالَ سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ فَقُولُوا اللَّهُمَّ رَبَّنَا لَكَ الْحَمْدُ ‏"‏ ‏.‏ قَالَ مُسْلِمٌ ‏"‏ وَلَكَ الْحَمْدُ ‏"‏ ‏.‏ ‏"‏ وَإِذَا سَجَدَ فَاسْجُدُوا وَلاَ تَسْجُدُوا حَتَّى يَسْجُدَ وَإِذَا صَلَّى قَائِمًا فَصَلُّوا قِيَامًا وَإِذَا صَلَّى قَاعِدًا فَصَلُّوا قُعُودًا أَجْمَعُونَ ‏"‏ ‏.‏ قَالَ أَبُو دَاوُدَ ‏"‏ اللَّهُمَّ رَبَّنَا لَكَ الْحَمْدُ ‏"‏ ‏.‏ أَفْهَمَنِي بَعْضُ أَصْحَابِنَا عَنْ سُلَيْمَانَ ‏.‏
Translation
Narrated AbuHurayrah

The Messenger of Allah (ﷺ) said: "The imam is appointed only to be followed. So when he says 'Allah is most great', say 'Allah is most great', and do not say it until he says it. When he bows, bow, and do not bow until he bows. And when he says 'Allah listens to him who praises Him', say 'O Allah, our Lord, to You be the praise'." Muslim said: "And to You be the praise." "And when he prostrates, prostrate, and do not prostrate until he prostrates. And when he prays standing, pray standing, and when he prays sitting, pray sitting, all of you." Abu Dawud said: "'O Allah, our Lord, to You be the praise.' Some of our companions made me understand this from Sulaiman."