Abdullah bin Umar reported,

If any of you is uncertain about his prayer, let him work out what he thinks he has forgotten of it, pray that part, and then perform the two prostrations for forgetfulness while sitting.

Malik 219

Sahih

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

عبد الله بن عمر كان يقول

إذا شك أحدكم في صلاته فليتوخ الذي يظن أنه نسي من صلاته فليصله ثم ليسجد سجدتي السهو وهو جالس

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