Abu Hurairah (RA) reported: The Messenger of Allah (ﷺ) while teaching us (the principles of faith), said: Do not try to go ahead of the Imam, recite takbir when he recites it. and when he says: "Nor of those who err," you should say Amin, bow down when lie bows down, and when he says: "Allah listens to him who praises Him," say: "O Allah, our Lord, to Thee be the praise".
A hadith like this has been transmitted by Suhail bin Abu Salih from his father on the authority of Abu Hurairah (RA) from the Apostle of Allah (ﷺ), except the words: "When he says: 'Nor of those who err,' say Amin," and he added: "And do not raise (your heads) before him."
Abu Hurairah (RA) reported: The Messenger of Allah (ﷺ) said: Verily the Imam is a shield, say prayer sitting when he says prayer sitting. And when he says: "Allah listens to him who praises Him," say: "O Allah, our Lord, to Thee be the praise." and when the utterance of the people of the earth synchronises with that of the beings of heaven (angels), all the previous sins would be pardoned.
Abu Hurairah (RA) reported Allah's Messenger (ﷺ) saying: The Imam is appointed to be followed. So recite takbir when he recites it, and bow down when he bows down and when he utters: "Allah listens to him who praises Him," say: "O Allah, our Lord for Thee be the praise." And when he prays, standing, you should pray standing. And when he prays sitting, all of you should pray sitting.