Sunan an-Nasa'i, Book 11, Hadith 47 (Nasa'i 924)

It was narrated that Abu Hurairah said:

"The Messenger of Allah (ﷺ) said: 'The Imam is appointed to be followed, so when he says the takbir, say the takbir, and when he recites, be silent.'"