Abu Hurairah reported,

The Messenger of Allah ﷺ said, "The imam is appointed only to be followed. So when he says the takbir, say the takbir. When he recites, listen in silence. When he says 'not of those who have earned Your anger, nor of those who have gone astray' [Fatihah 1:7], say 'Ameen.' When he bows, bow. When he says, 'Allah hears the one who praises Him,' say, 'O Allah, our Lord, to You belongs all praise.' When he prostrates, prostrate. And if he prays sitting down, then all of you pray sitting down."

Ibn Majah 846

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا أبو خالد الأحمر عن ابن عجلان عن زيد بن أسلم عن أبي صالح

عن أبي هريرة قال

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

ابن ماجه 846صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
When the imam recites, listen attentively
Numbering
Darussalam 846
Ibn Majah 846