Sayyiduna Abu Dharr (may Allah be pleased with him) says: I heard the Messenger of Allah (peace and blessings be upon him) say: "A black dog, a woman, and a donkey break the prayer." Abdullah bin Samit (may Allah be pleased with him) says: I asked Sayyiduna Abu Dharr (may Allah be pleased with him): What is the reason for specifying the black dog over the white dog? He said: I also asked the Messenger of Allah (peace and blessings be upon him) the same way you asked me, so he (peace and blessings be upon him) said: "The black dog is a devil."
Related hadith on this topic