Sunan Ibn Majah Book 5, Hadith 152
“The Messenger of Allah (ﷺ) said: ‘When anyone of you performs
prayer, let him pray facing towards a Sutrah, and let him get close
to
it, and not let anyone pass in front of him. If someone comes and
wants to pass in front of him, let him fight him, for he is a Shaitan
(satan).’”
‘Mention was made in the presence of Ibn ‘Abbas about what severs the prayer. They mentioned a dog, a donkey and a woman. He said: ‘What do you say about kids (young goats)? The Messenger of Allah (ﷺ) was performing prayer one day, when a kid came and wanted to pass in front of him. The Messenger of Allah (ﷺ) preceded it toward the Qiblah. (to tighten the space and prevent it from passing in front of him).’”
“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.”