Riyad as-Salihin 1838
Abu Hurairah (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "Your leaders will lead you in Salat (prayer). If they conduct it properly, you and they will be rewarded; but if they make mistakes you will earn the reward and they will be held responsible (for the mistakes)." [Al- Bukhari] .
وعنه أن رسول الله صلى الله عليه وسلم  قال‏:‏ ‏
"‏يصلون لكم، فإن أصابوا فلكم، وإن أخطؤوا فلكم وعليهم‏"‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏