[Machine] He said that if a person makes a mistake while standing or sitting, or if they bow down in what should be done while standing, or perform the Salam while in the two units of prayer, then they should complete their prayer and perform two prostrations while still sitting, making the Tashahhud during those two prostrations, and then perform the Salam.
أَنَّهُ قَالَ السَّهْوُ إِذَا قَامَ فِيمَا يَجْلِسُ فِيهِ أَوْ قَعَدَ فِيمَا يُقَامُ فِيهِ أَوْ سَلَّمَ فِي رَكْعَتَيْنِ فَإِنَّهُ يَفْرُغُ مِنْ صَلَاتِهِ وَيَسْجُدُ سَجْدَتَيْنِ وَهُوَ جَالِسٌ يَتَشَهَّدُ فِيهِمَا وَيُسَلِّمُ