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.
Hadith Referenceسنن ابي داود / تفرح أبواب ما يقطع الصلاة وما لا تقطعها / 702
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح مسلم (510)
Hadith Takhrij« صحیح مسلم/الصلاة 50 (510)، سنن الترمذی/الصلاة 141 (338)، سنن النسائی/القبلة 7 (751)، سنن ابن ماجہ/إقامة الصلاة 38 (952)، (تحفة الأشراف: 11939)، وقد أخرجہ: مسند احمد (5/149، 151، 155، 160، 161)، سنن الدارمی/الصلاة 128 (1454) (صحیح) »
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‘).
´It was narrated that Abu Dharr said:` “I asked the Messenger of Allah (ﷺ) about the all-black dog and he said: ‘(It is) a devil.’”
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