Yahya related to me from Malik from Abu'z-Zinad from al-Araj from Abu Hurayra that the Messenger of Allah ﷺ said, "When the call to prayer is made Shaytan retreats, passing wind, so that he will not hear the adhan. When the adhan is completed he comes back, until, when the iqama is said, he retreats again. When the iqama is completed, he comes back, until he comes between a man and his self and says, 'Think of such and such, think of such and such,' which he was not thinking about before, until the man does not know how much he has prayed."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ إِذَا نُودِيَ لِلصَّلاَةِ أَدْبَرَ الشَّيْطَانُ لَهُ ضُرَاطٌ حَتَّى لاَ يَسْمَعَ النِّدَاءَ فَإِذَا قُضِيَ النِّدَاءُ أَقْبَلَ حَتَّى إِذَا ثُوِّبَ بِالصَّلاَةِ أَدْبَرَ حَتَّى إِذَا قُضِيَ التَّثْوِيبُ أَقْبَلَ حَتَّى يَخْطِرَ بَيْنَ الْمَرْءِ وَنَفْسِهِ يَقُولُ اذْكُرْ كَذَا اذْكُرْ كَذَا لِمَا لَمْ يَكُنْ يَذْكُرُ حَتَّى يَظَلَّ الرَّجُلُ إِنْ يَدْرِي كَمْ صَلَّى