Sunan Ibn Majah, Book 5, Hadith 153 (Ibn Majah 955)

It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (ﷺ) said:

“When anyone of you is performing prayer, he should not let anyone pass in front of him. If he insists then let him fight him, for he has a Qarin (devil-companion) with him.”