"The Prophet (S) turned (finished the prayer) after two (Rak'ah), so Dhul-Yadain said: 'Has the prayer been shortened or have you forgotten O Messenger of Allah?" The Prophet (S) said: 'Is what Dhul-Yadain said the truth?' The people said yes, so Messenger of Allah (S) stood to perform the last two (Rakah) of Salat, then he said the Taslim. Then he said the Takbir and prostrated in a manner the same or longer than his (normal) prostrations."
أَنَّ النَّبِيَّ ﷺ انْصَرَفَ مِنَ اثْنَتَيْنِ فَقَالَ لَهُ ذُو الْيَدَيْنِ أَقُصِرَتِ الصَّلاَةُ أَمْ نَسِيتَ يَا رَسُولَ اللَّهِ فَقَالَ رَسُولُ اللَّهِ ﷺ أَصَدَقَ ذُو الْيَدَيْنِ فَقَالَ النَّاسُ نَعَمْ فَقَامَ رَسُولُ اللَّهِ ﷺ فَصَلَّى اثْنَتَيْنِ أُخْرَيَيْنِ ثُمَّ سَلَّمَ ثُمَّ كَبَّرَ فَسَجَدَ مِثْلَ سُجُودِهِ أَوْ أَطْوَلَ ثُمَّ كَبَّرَ فَرَفَعَ ثُمَّ سَجَدَ مِثْلَ سُجُودِهِ أَوْ أَطْوَلَ