Hafs reported that the Messenger of Allah ﷺ as saying, and the other version of this tradition transmitted through a different chain has: Abu Dharr said (and not the Prophet): If there is not anything like the back of a saddle in front of a man who is praying, then a donkey, a black dog, and a woman cut off his prayer. I asked him: Why has the black dog been specified, distinguishing it from a red, a yellow and a white dog? He replied: My nephew, I also asked the Messenger of Allah ﷺ the same question as you asked me. He said: The black dog is a devil.
Related hadith on this topic
Brief Explanation
1؎ : The majority of scholars have interpreted this narration to mean that what is intended by the "breaking" of the prayer is the occurrence of deficiency in the prayer, because the passing of these things distracts the one praying and causes a disturbance in their humility and submissiveness (khushu‘ and khudu‘).
Explanation & Benefits
Maulana Ataullah Sajid
Benefits and Issues:
There is an indication in this that one should not keep a dog whose entire body is black.
If it is prohibited to keep such a dog, then rearing or using it for hunting will also be prohibited.
And Allah knows best.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 3210