‘O Messenger of Allah, has the prayer been shortened or did you forget?’ He said: ‘It has not been shortened and I did not forget.’ He said: ‘But you prayed two Rak’ah.’ He said: ‘Is what Dhul-Yadain says true?’ They said: ‘Yes.’ So he went forward and performed two Rak’ah and said the Salam, then he prostrated twice for prostrations of forgetfulness. (Using translation from Ibn Mājah 1213)
أَنَّ رَسُولَ اللهِ ﷺ صَلَّى فَسَهَا فَسَلَّمَ فِي الرَّكْعَتَيْنِ فَقَالَ لَهُ رَجُلٌ يُقَالُ لَهُ ذُو الْيَدَيْنِ يَا رَسُولَ اللهِ أَقَصُرَتِ الصَّلَاةُ أَمْ نَسِيتَ؟ قَالَ مَا قَصُرَتِ الصَّلَاةُ وَمَا نَسِيتُ قَالَ فَإِنَّكَ صَلَّيْتَ رَكْعَتَيْنِ فَقَالَ أَكَمَا قَالَ ذُو الْيَدَيْنِ؟ قَالُوا نَعَمْ قَالَ فَتَقَدَّمَ فَصَلَّى رَكْعَتَيْنِ ثُمَّ سَلَّمَ ثُمَّ سَجَدَ سَجْدَتَيِ السَّهْوِ تَفَرَّدَ بِهِ أَبُو أُسَامَةَ حَمَّادُ بْنُ أُسَامَةَ وَهُوَ مِنَ الثِّقَاتِ