´It was narrated that Abu Hurairah said:` “The Prophet (ﷺ) used to teach us not to bow or prostrate before the Imam; when he says the Takbir then say the Takbir, and when he prostrates, you should prostrate.”
Hadith ReferenceSunan Ibn Majah / Establishing the Prayer and the Sunnah Regarding Them / Hadith: 960