Abu Hurairah reported,

The Prophet ﷺ said, "The imam is appointed only to be followed. When he says the takbir, say the takbir, and do not say it until he does. When he bows, bow, and do not bow until he does. When he says, 'Allah hears the one who praises Him,' say, 'Our Lord, to You belongs all praise.' When he prostrates, prostrate, and do not prostrate until he does. And if he prays sitting, then pray sitting, all of you."

Ahmad 8502

Sahih

حدثنا عفان حدثنا وهيب حدثنا مصعب بن محمد عن أبي صالح السمان

عن أبي هريرة

عن النبي ﷺ قال إنما الإمام ليؤتم به فإذا كبر فكبروا ولا تكبروا حتى يكبر وإذا ركع فاركعوا ولا تركعوا حتى يركع وإذا قال سمع الله لمن حمده فقولوا ربنا ولك الحمد وإذا سجد فاسجدوا ولا تسجدوا حتى يسجد وإن صلى جالسا فصلوا جلوسا أجمعون

أحمد 8502صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 8502
Ahmad 8502