(5) Establishing the Prayer and the Sunnah Regarding Them
كتاب إقامة الصلاة والسنة فيها
(131) Chapter: What was narrated concerning one who stands up after two Rak’ah by mistake
(131) باب مَا جَاءَ فِيمَنْ قَامَ مِنَ اثْنَتَيْنِ سَاهِيًا
Sunan Ibn Majah 1206 
It was narrated from Ibn Buhainah:
“The Prophet (ﷺ) offered prayer, I think it was the ‘Asr, and in the second Rak’ah he stood up before he sat. Before he said the Salam, he prostrated twice.”
حَدَّثَنَا عُثْمَانُ، وَأَبُو بَكْرٍ ابْنَا أَبِي شَيْبَةَ وَهِشَامُ بْنُ عَمَّارٍ قَالُوا حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنِ الزُّهْرِيِّ، عَنِ الأَعْرَجِ، عَنِ ابْنِ بُحَيْنَةَ، أَنَّ النَّبِيَّ ـ صلى الله عليه وسلم ـ صَلَّى صَلاَةً أَظُنُّ أَنَّهَا الظُّهْرُ (العَصْرُ) فَلَمَّا كَانَ فِي الثَّانِيَةِ قَامَ قَبْلَ أَنْ يَجْلِسَ فَلَمَّا كَانَ قَبْلَ أَنْ يُسَلِّمَ سَجَدَ سَجْدَتَيْنِ ‏.‏
Grade :  Sahih (Darussalam)
Reference : Sunan Ibn Majah 1206
In-book reference : Book 5, Hadith 404
English translation : Vol. 1, Book 5, Hadith 1206