Sunan Ibn Majah Book 5, Hadith 151
‘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).’”
“The prayer is severed by a woman, a donkey, and a black dog, if there is not something like the handle of a saddle in front of a man.” I (‘Abdullah) said: “What is wrong with a black dog and not a red one?” He (Abu Dharr) said: ‘I asked the Messenger of Allah (ﷺ) the same question, and he said: “The black dog is a Shaitan (satan).”
“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).’”