[Machine] The Messenger of Allah ﷺ stood up during two times of the Dhuhr or Asr prayer. When he stood straight, he did not sit back until he completed his prayer. Then he performed the two prostrations of forgetfulness before saying the taslim (ending of the prayer), and then he said the taslim.
أَنَّ رَسُولَ اللهِ ﷺ قَامَ فِي اثْنَتَيْنِ مِنَ الظُّهْرِ أَوِ الْعَصْرِ فَلَمَّا اعْتَدَلَ قَائِمًا لَمْ يَرْجِعْ حَتَّى قَضَى صَلَاتَهُ ثُمَّ سَجَدَ سَجْدَتَيِ السَّهْوِ قَبْلَ أَنْ يُسَلِّمَ ثُمَّ يُسَلِّمُ