Once Messenger of Allah ﷺ offered two rakʿat and finished his prayer. So Dhul-Yadain asked him, "Has the prayer been reduced or have you forgotten?" Messenger of Allah ﷺ said, "Has Dhul-Yadain spoken the truth?" The people replied in the affirmative. Then Messenger of Allah ﷺ stood up and offered the remaining two rakʿat and performed Taslim, and then said Takbir and performed two prostrations like his usual prostrations, or a bit longer, and then got up.
عَنْ أَبِي هُرَيْرَةَ ؓ أَنَّ رَسُولَ اللَّهِ ﷺ انْصَرَفَ مِنِ اثْنَتَيْنِ فَقَالَ لَهُ ذُو الْيَدَيْنِ أَقُصِرَتِ الصَّلاَةُ أَمْ نَسِيتَ يَا رَسُولَ اللَّهِ فَقَالَ رَسُولُ اللَّهِ ﷺ أَصَدَقَ ذُو الْيَدَيْنِ فَقَالَ النَّاسُ نَعَمْ فَقَامَ رَسُولُ اللَّهِ ﷺ فَصَلَّى اثْنَتَيْنِ أُخْرَيَيْنِ ثُمَّ سَلَّمَ ثُمَّ كَبَّرَ فَسَجَدَ مِثْلَ سُجُودِهِ أَوْ أَطْوَلَ ثُمَّ رَفَعَ