The Messenger of Allah ﷺ gave the salutation at the end of three rakahs in the afternoon prayer, then went into the apartment (according to the version of maslamah). A man called al-Khirbaq who had long arms got up and said ; has the prayer been shortened, Messenger of Allah ? He came out angrily trailing his cloak and said : Is he telling the truth ? they said; Yes. He then prayed that rakah, then gave the salutation, then made two prostrations, then gave the salutation. (Using translation from Abū Dāʾūd 1018)
سَلَّمَ رَسُولُ اللهِ ﷺ فِي ثَلَاثِ رَكَعَاتٍ مِنَ الْعَصْرِ فَدَخَلَ فَقَامَ إِلَيْهِ رَجُلٌ يُقَالُ لَهُ الْخِرْبَاقُ وَكَانَ طَوِيلَ الْيَدَيْنِ فَقَالَ أَقَصُرَتِ الصَّلَاةُ يَا رَسُولَ اللهِ؟ فَخَرَجَ مُغْضَبًا يَجُرُّ رِدَاءَهُ فَقَالَ «أَصْدَقَ» فَقَالُوا نَعَمْ فَقَامَ فَصَلَّى تِلْكَ الرَّكْعَةَ