One who says the Salam after two or three Rak’ah by mistake Sunan Ibn Majah 1214

Arabic hadith text
حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنِ ابْنِ عَوْنٍ، عَنِ ابْنِ سِيرِينَ، عَنْ أَبِي هُرَيْرَةَ، قَالَ صَلَّى بِنَا رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ إِحْدَى صَلاَتَىِ الْعَشِيِّ رَكْعَتَيْنِ ثُمَّ سَلَّمَ ثُمَّ قَامَ إِلَى خَشَبَةٍ كَانَتْ فِي الْمَسْجِدِ يَسْتَنِدُ إِلَيْهَا فَخَرَجَ سَرَعَانُ النَّاسِ يَقُولُونَ قَصُرَتِ الصَّلاَةُ ‏.‏ وَفِي الْقَوْمِ أَبُو بَكْرٍ وَعُمَرُ فَهَابَاهُ أَنْ يَقُولاَ لَهُ شَيْئًا وَفِي الْقَوْمِ رَجُلٌ طَوِيلُ الْيَدَيْنِ يُسَمَّى ذَا الْيَدَيْنِ فَقَالَ يَا رَسُولَ اللَّهِ أَقَصُرَتِ الصَّلاَةُ أَمْ نَسِيتَ؟ فَقَالَ ‏"‏ لَمْ تَقْصُرْ وَلَمْ أَنْسَ ‏"‏ ‏.‏ قَالَ فَإِنَّمَا صَلَّيْتَ رَكْعَتَيْنِ ‏.‏ فَقَالَ ‏"‏ أَكَمَا يَقُولُ ذُو الْيَدَيْنِ؟ ‏"‏ ‏.‏ قَالُوا نَعَمْ ‏.‏ قَالَ فَقَامَ فَصَلَّى رَكْعَتَيْنِ ثُمَّ سَلَّمَ ثُمَّ سَجَدَ سَجْدَتَيْنِ ثُمَّ سَلَّمَ ‏.‏
Translation
It wasnarrated that Abu Hurairah said

“The Messenger of Allah (ﷺ)ledus in one of the afternoon prayers, and he prayed two Rak’ah, thenhe said the Salam. Then he stood up and went to a piece of wood inthemosque, and leaned against it. Those who were in a hurry left themosque, saying that the prayer had been shortened. Among the peoplewere Abu Bakr and ‘Umar, but they dared not say anything. Among thepeople there was also a man with long hands who was calledDhul-Yadain. He said: ‘O Messenger of Allah, has the prayer beenshortenedor did you forget?’ He said: ‘It has not been shortenedand I did notforget.’ He said: ‘But you prayed two Rak’ah.’ Hesaid: ‘Is what Dhul-Yadain says true?’ They said: ‘Yes.’ Sohe went forward and performedtwo Rak’ah and said the Salam, thenhe prostrated twice, and then hesaid the Salam again.”