Hadith Q1029

وَالْمُضِيِّ فِي الصَّلَاةِ إِذَا اسْتَوَى الْمُصَلِّي قَائِمًا، وَإِيجَابِ سَجْدَتَيِ السَّهْوِ عَلَى فَاعِلِهِ
And when the person praying stands up straight, he should continue the prayer; two prostrations of forgetfulness are obligatory upon such a person.
Hadith Reference صحيح ابن خزيمه / جماع أبواب السهو فى الصلاة / Q1029