Hadith on Salah: Satan makes him remember the world in prayer

Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, if one of you stands for prayer, Satan comes to distract him until he does not know how many cycles he has performed. When that happens to one of you, then let him perform two prostrations while he is sitting.”

In another narration, the Prophet said, “Satan faces him until he provokes thoughts between a man and himself, saying, ‘Remember this! Remember this!” such as he was not remembering before, until a man does not know how many cycles he has prayed.

Source: Ṣaḥīḥ al-Bukhārī 1175, Ṣaḥīḥ Muslim 389

Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim

عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ إِنَّ أَحَدَكُمْ إِذَا قَامَ يُصَلِّي جَاءَ الشَّيْطَانُ فَلَبَسَ عَلَيْهِ حَتَّى لَا يَدْرِيَ كَمْ صَلَّى فَإِذَا وَجَدَ ذَلِكَ أَحَدُكُمْ فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ

قال في رواية أخرى أَقْبَلَ حَتَّى يَخْطِرَ بَيْنَ الْمَرْءِ وَنَفْسِهِ يَقُولُ اذْكُرْ كَذَا اذْكُرْ كَذَا لِمَا لَمْ يَكُنْ يَذْكُرُ حَتَّى يَظَلَّ الرَّجُلُ إِنْ يَدْرِي كَمْ صَلَّ

1175 صحيح البخاري كتاب السهو باب السهو في الفرض والتطوع

389 صحيح مسلم كتاب المساجد ومواضع الصلاة باب السهو في الصلاة والسجود له