The Prophet (ﷺ) said, "The Imam is to be followed. Say the Takbir when he says it; bow if…

Sahih al-Bukhari Book 10 Hadith 128

Sahih al-Bukhari #734

Call to Prayers (Adhaan) 10:128

Narrated Abu Huraira:

The Prophet (ﷺ) said, "The Imam is to be followed. Say the Takbir when he says it; bow if he bows; if he says 'Sami`a l-lahu liman hamidah', say, ' Rabbana wa laka l-hamd', prostrate if he prostrates and pray sitting altogether if he prays sitting."

Chapter: The necessity of saying the Takbir, i.e., Allahu Akbar (Allah is the Most Great) and the commencement of As-Salat (the prayer)

Grade: Sahih