Abdullah bin Samit رحمه الله narrates from Sayyiduna Abu Dharr رضی اللہ عنہ that the Prophet صلی اللہ علیہ وسلم said: "The prayer will be invalidated if a donkey, a woman, or a black dog passes in front of the one praying." I asked, "Is there a difference between a black dog and a yellow or red dog?" He replied, "I asked the Messenger of Allah صلی اللہ علیہ وسلم just as you have asked me, and he said: 'The black dog is a devil.'"