´It was narrated from 'Abdullah bin Buhainah that:` The Messenger of Allah (ﷺ) stood up during the prayer when he should have sat, so he prostrated twice while sitting, before the taslim.
Hadith ReferenceSunan an-Nasa'i / The Book of Forgetfulness (In Prayer) / Hadith: 1224