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.
Sunan Abi Dawud Book 2, Hadith 629