[Machine] The Messenger of Allah ﷺ said, "If the imam makes a mistake and rectifies it while standing, then he should perform the two prostrations of forgetfulness. But if he does not rectify it while standing, then there is no obligation upon him for prostrations of forgetfulness."
قَالَ رَسُولُ اللهِ ﷺ «إِذَا سَهَا الْإِمَامُ فَاسْتَتَمَّ قَائِمًا فَعَلَيْهِ سَجْدَتَا السَّهْوِ وَإِذَا لَمْ يَسْتَتِمَّ قَائِمًا فَلَا سَهْوَ عَلَيْهِ»