Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When one of you stands to pray, Satan comes to him and confuses him until he does not know how much he has prayed. So if any of you experiences that, let him perform two prostrations while sitting."

Malik 228

Sahih

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

عن أبي هريرة

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

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