Sunan Abi Dawud 516
Abu Hurairah reported the Messenger of Allah (ﷺ) as saying:
when the call to prayer is made; the devil turns his back and breaks wind so as not to hear the call being made; but when the call is finished, he turns round. When the second call to prayer (iqamah) is made, he turns his back, and when the second call is finished, he turns round and suggest notions in the mind of the man (at prayer) to distract his attention, saying: remember such and such, referring to something the man did not have n mind, with the result that he does not know how much he has prayed.
حَدَّثَنَا الْقَعْنَبِيُّ، عَنْ مَالِكٍ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏
"‏ إِذَا نُودِيَ بِالصَّلاَةِ أَدْبَرَ الشَّيْطَانُ وَلَهُ ضُرَاطٌ حَتَّى لاَ يَسْمَعَ التَّأْذِينَ فَإِذَا قُضِيَ النِّدَاءُ أَقْبَلَ حَتَّى إِذَا ثُوِّبَ بِالصَّلاَةِ أَدْبَرَ حَتَّى إِذَا قُضِيَ التَّثْوِيبُ أَقْبَلَ حَتَّى يَخْطِرَ بَيْنَ الْمَرْءِ وَنَفْسِهِ وَيَقُولَ اذْكُرْ كَذَا اذْكُرْ كَذَا لِمَا لَمْ يَكُنْ يَذْكُرُ حَتَّى يَضِلَّ الرَّجُلُ إِنْ يَدْرِي كَمْ صَلَّى ‏"‏ ‏.‏