It wasnarrated from Abu Hurairah that the Prophet (ﷺ) said: “TheSatancomes between the son of Adam and his soul, and he does not knowhowmany Rak’ah he has prayed. If a person notices that, then let himprostrate twice before he says the Salam.”
Hadith In Arabic Text :
حدثنا سفيان بن وكيع، حدثنا يونس بن بكير، حدثنا ابن إسحاق، أخبرني سلمة بن صفوان بن سلمة، عن أبي سلمة، عن أبي هريرة، أن النبي صلى الله عليه وسلم قال ” إن الشيطان يدخل بين ابن آدم وبين نفسه فلا يدري كم صلى فإذا وجد ذلك فليسجد سجدتين قبل أن يسلم ” .
Chapter : Establishing the Prayer and the Sunnah Regarding Them – كتاب إقامة الصلاة والسنة فيها