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."
حدثنا عفان حدثنا وهيب حدثنا مصعب بن محمد عن أبي صالح السمان
عن النبي ﷺ قال إنما الإمام ليؤتم به فإذا كبر فكبروا ولا تكبروا حتى يكبر وإذا ركع فاركعوا ولا تركعوا حتى يركع وإذا قال سمع الله لمن حمده فقولوا ربنا ولك الحمد وإذا سجد فاسجدوا ولا تسجدوا حتى يسجد وإن صلى جالسا فصلوا جلوسا أجمعون