If the Imam does not offer the Salat (prayer) perfectly and the followers offer it perfectly
باب إِذَا لَمْ يُتِمَّ الإِمَامُ وَأَتَمَّ مَنْ خَلْفَهُ
Sahih al-Bukhari, Book of Call to Prayers (Adhaan)(view book)
Sahih al-Bukhari 694
Narrated Abu Huraira:
Allah's Apostle ﷺ 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."
حَدَّثَنَا الْفَضْلُ بْنُ سَهْلٍ، قَالَ حَدَّثَنَا الْحَسَنُ بْنُ مُوسَى الأَشْيَبُ، قَالَ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ " يُصَلُّونَ لَكُمْ، فَإِنْ أَصَابُوا فَلَكُمْ، وَإِنْ أَخْطَئُوا فَلَكُمْ وَعَلَيْهِمْ ".
Classification
Sahih (Authentic)