Abdullah bin Masud reported,

He traced it back to the Prophet ﷺ, who said, "When one of you is uncertain about his prayer, let him strive to determine what he believes is correct, complete the prayer accordingly, then perform two prostrations."I did not grasp some of its wording as well as I wished.

Nasai 1241

Sahih

أخبرنا محمد بن رافع قال حدثنا يحيى بن آدم قال حدثنا مفضل وهو ابن مهلهل عن منصور عن إبراهيم عن علقمة

عن عبد الله

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

النسائي 1241صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Forgetfulness
Chapter
Seeking the most correct direction
Numbering
Darussalam 1241
Nasai 1241