[Machine] The Messenger of Allah ﷺ said: "Indeed, the imam suffices for those behind him. If the imam makes a mistake, he should perform the two prostrations of forgetfulness, and those behind him should also prostrate with him. But if someone behind him makes a mistake, he does not have to prostrate, as the imam's prostration suffices for him." Kharijah ibn Mus'ab narrated from Abu al-Husayn al-Madini from Salim ibn Abdullah from his father from Umar from the Prophet ﷺ with a similar meaning. Abu al-Husayn is unknown and al-Hakam ibn Abdullah is weak. Allah knows best.
قَالَ رَسُولُ اللهِ ﷺ إِنَّ الْإِمَامَ يَكْفِي مَنْ وَرَاءَهُ فَإِنْ سَهَا الْإِمَامُ فَعَلَيْهِ سَجْدَتَا السَّهْوِ وَعَلَى مَنْ وَرَاءَهُ أَنْ يَسْجُدُوا مَعَهُ وَإِنْ سَهَا أَحَدٌ مِمَّنْ خَلْفَهُ فَلَيْسَ عَلَيْهِ أَنْ يَسْجُدَ وَالْإِمَامُ يَكْفِيهِ وَرَوَى خَارِجَةُ بْنُ مُصْعَبٍ عَنْ أَبِي الْحُسَيْنِ الْمَدِينِيِّ عَنْ سَالِمِ بْنِ عَبْدِ اللهِ عَنْ أَبِيهِ عَنْ عُمَرَ عَنِ النَّبِيِّ ﷺ بِمَعْنَاهُ وَأَبُو الْحُسَيْنِ هَذَا مَجْهُولٌ وَالْحَكَمُ بْنُ عَبْدِ اللهِ ضَعِيفٌ وَاللهُ أَعْلَمُ