The Messenger of Allah ﷺ said, "When Satan hears the caller announcing the prayer, he flees, passing wind so that he does not hear the sound. Once the call is finished, he returns and whispers distractions. When the iqamah is given, he does the same again."
حدثنا أبو سعيد حدثنا زائدة حدثنا الأعمش عن أبي صالح
أن رسول الله ﷺ قال إذا سمع الشيطان المنادي ينادي بالصلاة خرج وله ضراط حتى لا يسمع الصوت فإذا فرغ رجع فوسوس فإذا أخذ في الإقامة فعل مثل ذلك