It was narrated from ‘Imran bin Hussain that the Prophet صلی اللہ علیہ وآلہ وسلم prayed three (Rak’ahs) then said the Taslim. Al-Khirbaq said: “You prayed three.” So he led them in praying the remaining Rak’ah, then he said the Taslim, then he did the two prostrations of forgetfulness, then he said the Taslim(again). (Sahih)