عَنْ عَبْدِ الرَّحْمَنِ بْنِ الْأَعْرَجِ أَنَّ ابْنَ بُحَيْنَةَ أَخْبَرَهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَامَ فِي الثِّنْتَيْنِ مِنَ الظُّهْرِ، نَسِيَ الْجُلُوسَ حَتَّى إِذَا فَرَغَ مِنْ صَلَاتِهِ إِلَى أَنْ يُسَلِّمَ، سَجَدَ سَجْدَتَيْنِ ثُمَّ خَتَمَ بِالتَّسْلِيمِ (وَفِي رِوَايَةٍ:) فَلَمَّا صَلَّى الْأُخْرَيَيْنِ انْتَظَرَ النَّاسُ تَسْلِيمَهُ فَكَبَّرَ فَسَجَدَ ثُمَّ كَبَّرَ فَسَجَدَ ثُمَّ سَلَّمَ
It is narrated from Sayyiduna Ibn Buhaina (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) stood up after two rak‘ahs of Zuhr and forgot to sit. Then, when he completed the prayer and was about to say salam, he performed two prostrations and then ended the prayer by saying salam. In another narration, it is mentioned: When he had performed the last two rak‘ahs, the people were waiting for him to say salam, so he said takbir and performed a prostration, then said takbir and performed a second prostration, and then said salam.