Sahih al-Bukhari 3274
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِذَا مَرَّ بَيْنَ يَدَىْ أَحَدِكُمْ شَىْءٌ وَهُوَ يُصَلِّي فَلْيَمْنَعْهُ، فَإِنْ أَبَى فَلْيَمْنَعْهُ، فَإِنْ أَبَى فَلْيُقَاتِلْهُ، فَإِنَّمَا هُوَ شَيْطَانٌ "
Narrated Abu Said Al-Khudri:
The Prophet (ﷺ) said, "If while you are praying, somebody intends to pass in front of you, prevent him; and should he insist, prevent him again; and if he insists again, fight with him (i.e. prevent him violently e.g. pushing him violently), because such a person is (like) a devil."
Full reference and source
Sahih al-Bukhari 3274 In-book : Book 59, Hadith 83 USC-MSA web (English) : Vol. 4, Book 54, Hadith 495 (deprecated)
View source on Sunnah.com (opens in a new tab)