Allah's Messenger (ﷺ) said, "If the Imam leads the prayer correctly then he and you will receive the rewards but if he makes a mistake (in the prayer) then you will receive the reward for the prayer and the sin will be his."
Reference: Sahih al-Bukhari 694 In-book : Book 10, Hadith 89 USC-MSA web (English) : Vol. 1, Book 11, Hadith 663 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.