Sayyiduna Abu Dharr (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "When a person does not have anything in front of him equal to the back part of a saddle, his prayer is broken by the passing of a donkey, a black dog, or a woman." The narrator said: I asked Sayyiduna Abu Dharr (may Allah be pleased with him): What about a red or yellow dog? He said: Just as you have asked me, I also asked the Messenger of Allah (peace and blessings be upon him), and he said: "Because the black dog is a devil."
Hadith Referenceسنن دارمي / من كتاب الصللاة / 1452