Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When the call to prayer is announced, Satan turns and flees, breaking wind so as not to hear the call. Once the call is finished, he returns. Then when the iqamah is pronounced, he flees again, and when the iqamah is completed, he comes back and intrudes between a man and his own thoughts, saying, 'Remember this, remember that,' bringing to mind things the man had not been thinking about, until he ends up not knowing how many units he has prayed."

Bukhari 608

Sahih

حدثنا عبد الله بن يوسف قال أخبرنا مالك عن أبي الزناد عن الأعرج

عن أبي هريرة

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

البخاري 608صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Virtue of calling the adhan
Numbering
Darussalam 608
Bukhari 608