Ata bin Yasar reported,

I asked Abdullah bin Amr bin As and Kaab al-Ahbar about a man who becomes uncertain during his prayer and does not know how much he has prayed, whether three or four. Both of them said, "Let him pray one more rakat, then let him perform two prostrations while seated."

Malik 220

Sahih

و حدثني عن مالك عن عفيف بن عمرو السهمي

عن عطاء بن يسار أنه قال

سألت عبد الله بن عمرو بن العاص وكعب الأحبار عن الذي يشك في صلاته فلا يدري كم صلى أثلاثا أم أربعا فكلاهما قال ليصل ركعة أخرى ثم ليسجد سجدتين وهو جالس

مالك 220صحيح
Contents
Reference
Commentary
Ayat
Collection
Muwatta Malik
Book
Prayer
Numbering
Laithi 220
Malik 220