Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “You will be led in prayer. If they are correct, it will be a reward for them and for you. If they make mistakes, it will be for you and against them.”
Source: Ṣaḥīḥ al-Bukhārī 662
Grade: Sahih (authentic) according to Al-Bukhari
Ibn Hajar said, “The tradition is evidence that the mistakes of the Imam do not affect the validity of the prayer of those behind him, if they are correct.”
Source: Fatḥ al-Bārī 662
عَنْ أَبِي هُرَيْرَةَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ يُصَلُّونَ لَكُمْ فَإِنْ أَصَابُوا فَلَكُمْ وَإِنْ أَخْطَئُوا فَلَكُمْ وَعَلَيْهِمْ
662 صحيح البخاري أبواب صلاة الجماعة والإمامة باب إذا لم يتم الإمام وأتم من خلفه
قال ابن حجر وَقَدْ دَلَّ الْحَدِيثُ عَلَى أَنَّ خَطَأَ الْإِمَامِ لَا يُؤَثِّرُ فِي صِحَّةِ صَلَاةِ الْمَأْمُومِ إِذَا أَصَابَ
662 فتح الباري شرح صحيح البخاري