The Messenger of Allah ﷺ 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 with him, and do not bow until he does. When he says, 'Allah hears whoever praises Him,' say, 'O Allah, our Lord, to You belongs all praise.'"Muslim's version has, "And to You belongs all praise.""When he prostrates, prostrate with him, and do not prostrate until he does. When he prays standing, pray standing, and when he prays sitting, all of you pray sitting."
حدثنا سليمان بن حرب ومسلم بن إبراهيم المعنى عن وهيب عن مصعب بن محمد عن أبي صالح
قال رسول الله ﷺ إنما جعل الإمام ليؤتم به فإذا كبر فكبروا ولا تكبروا حتى يكبر وإذا ركع فاركعوا ولا تركعوا حتى يركع وإذا قال سمع الله لمن حمده فقولوا اللهم ربنا لك الحمد قال مسلم ولك الحمد وإذا سجد فاسجدوا ولا تسجدوا حتى يسجد وإذا صلى قائما فصلوا قياما وإذا صلى قاعدا فصلوا قعودا أجمعون