Sunan Ibn Majah – Hadith No : 1273

It wasnarrated from Abu Hurairah that the Prophet (ﷺ) said: “TheSatancomes to any one of you while he is praying and comes betweenhim andhis soul, until he does not know whether he as added somethingoromitted something. If that happens, then he should prostrate twicebefore the Salam, then he should say the Salam.”

Hadith In Arabic Text :

حدثنا سفيان بن وكيع، حدثنا يونس بن بكير، حدثنا ابن إسحاق، حدثني الزهري، عن أبي سلمة، عن أبي هريرة، أن النبي صلى الله عليه وسلم قال ‏”‏ إن الشيطان يأتي أحدكم في صلاته فيدخل بينه وبين نفسه حتى لا يدري زاد أو نقص فإذا كان ذلك فليسجد سجدتين قبل أن يسلم ثم يسلم ‏”‏ ‏.‏

Chapter : Establishing the Prayer and the Sunnah Regarding Them – كتاب إقامة الصلاة والسنة فيها