Abdur-Rahman bi Awf narrated that he heard the Prophet (S) saying:"When one of you becomes forgetful in his Salat so that he does not know if he prayed one or two, then let him consider it one. When he does not know if he prayed three or four, then let him consider it three, and let him perform two prostrations before he says the Taslim
Hadith No. 398
Jami At Tirmidhi
Gradings:
Ahmad Muhammad Shakir:
Sahih
Al-Albani:
Sahih
Bashar Awad Maarouf:
Hasan Sahih
Zubair Ali Zai:
Hasan