The Imam is appointed to be followed. So recite takbir when he recites it, and bow down…

Sahih Muslim Book 4 Hadith 97

Sahih Muslim #417

The Book of Prayers 4:97

Abu Huraira 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.

Chapter: The Prohibition Of Preceding The Imam In Saying The Takbir Or Anything Else

Grade: Sahih