حَدَّثَنَا الْقَعْنَبِيُّ، عَنْ مَالِكٍ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏إِذَا نُودِيَ بِالصَّلاَةِ أَدْبَرَ الشَّيْطَانُ وَلَهُ ضُرَاطٌ حَتَّى لاَ يَسْمَعَ التَّأْذِينَ فَإِذَا قُضِيَ النِّدَاءُ أَقْبَلَ حَتَّى إِذَا ثُوِّبَ بِالصَّلاَةِ أَدْبَرَ حَتَّى إِذَا قُضِيَ التَّثْوِيبُ أَقْبَلَ حَتَّى يَخْطِرَ بَيْنَ الْمَرْءِ وَنَفْسِهِ وَيَقُولَ اذْكُرْ كَذَا اذْكُرْ كَذَا لِمَا لَمْ يَكُنْ يَذْكُرُ حَتَّى يَضِلَّ الرَّجُلُ إِنْ يَدْرِي كَمْ صَلَّى ‏"
Translation
Abu Hurairah reported the Messenger of Allah (ﷺ) as saying

When the call to prayer is proclaimed, the Satan turns away, passing wind loudly so as not to hear the adhan. When the call is finished, he comes back. When the iqamah for prayer is proclaimed, he turns away, and when the iqamah is finished, he comes back until he inserts himself between a person and his soul, saying, 'Remember such and such, remember such and such,' concerning something he was not remembering, until the man remains unaware of how much he has prayed.