Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai:4862Muḥammad b. Muṣʿab > Muḥammad b. al-Mubārak > ʿAbd al-ʿAzīz b. Muḥammad > Ṣafwān b. Sulaym > ʿAṭāʾ b. Yasār > Abū Saʿīd al-Khudrī

he was praying and a son a Marwan wanted to pass in front of him. He tried to stop him but he did not go back, so he hit him. The boy went the boy went out crying and went to Marwan and told him (what had happened). Marwan said to Abu Sa'eed: "Why did you hit your brother's son?" He said: "I did not hit him, rater I hit the Saitan. I heard the Messenger of Allah say: 'If one of you is praying and someone wants to pass in front of him, let him troy to stop him as much as he can, and if he persists then let him fight him, for he is a devil.  

النسائي:٤٨٦٢أَخْبَرَنَا مُحَمَّدُ بْنُ مُصْعَبٍ قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ الْمُبَارَكِ قَالَ حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ مُحَمَّدٍ عَنْ صَفْوَانَ بْنِ سُلَيْمٍ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ

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


See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:7038Muḥammad b. Muṣʿab al-Ṣūrī > Muḥammad b. al-Mubārak > ʿAbd al-ʿAzīz b. Muḥammad > Ṣafwān b. Sulaym > ʿAṭāʾ b. Yasār > Abū Saʿīd al-Khudrī

he was praying and a son a Marwan wanted to pass in front of him. He tried to stop him but he did not go back, so he hit him. The boy went the boy went out crying and went to Marwan and told him (what had happened). Marwan said to Abu Sa'eed: "Why did you hit your brother's son?" He said: "I did not hit him, rater I hit the Saitan. I heard the Messenger of Allah say: 'If one of you is praying and someone wants to pass in front of him, let him troy to stop him as much as he can, and if he persists then let him fight him, for he is a devil. (Using translation from Nasāʾī 4862)  

الكبرى للنسائي:٧٠٣٨أَخْبَرَنَا مُحَمَّدُ بْنُ مُصْعَبٍ الصُّورِيُّ قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ الْمُبَارَكِ قَالَ حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ مُحَمَّدٍ عَنْ صَفْوَانَ بْنِ سُلَيْمٍ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ أَنَّهُ كَانَ يُصَلِّي وَأَرَادَ ابْنٌ لِمَرْوَانَ

أَنْ يَمُرَّ بَيْنَ يَدَيْهِ فَدَرَأَهُ فَلَمْ يَرْجِعْ فَضَرَبَهُ فَخَرَجَ الْغُلَامُ يَبْكِي حَتَّى أَتَى مَرْوَانَ فَأَخْبَرَهُ فَقَالَ مَرْوَانُ لِأَبِي سَعِيدٍ لِمَ ضَرَبْتَ ابْنَ أَخِيكَ؟ قَالَ مَا ضَرَبْتُهُ إِنَّمَا ضَرَبْتُ الشَّيْطَانَ سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «إِذَا كَانَ أَحَدُكُمْ فِي صَلَاتِهِ فَأَرَادَ إِنْسَانٌ يَمُرُّ بَيْنَ يَدَيْهِ فَلْيَدْرَأْهُ مَا اسْتَطَاعَ فَإِنْ أَبَى فَلْيُقَاتِلْهُ فَإِنَّهُ شَيْطَانٌ»