Abu Hurairah reported,

The Prophet ﷺ said, "When the call to prayer is made, Satan flees, breaking wind as he goes. When the call is finished, he returns. When the iqamah is called, he flees again, and when it is finished, he returns, until he comes between a man and his heart, saying, 'Remember such and such,' until the man does not know whether he has prayed three or four units. When he does not know whether he has prayed three or four, let him perform the two prostrations of forgetfulness."

Bukhari 3285

Sahih

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

عن أبي هريرة رضي الله عنه قال

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

البخاري 3285صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Beginning of creation
Chapter
Description of Iblis and his soldiers
Numbering
Darussalam 3285
Bukhari 3285