Abu Dharr reported,

The Messenger of Allah ﷺ said, "When one of you stands to pray, he is screened if there is something the size of the back of a saddle in front of him. If there is nothing the size of the back of a saddle in front of him, then his prayer is invalidated by a donkey, a woman, or a black dog passing by."I asked, "Abu Dharr, what is it about a black dog that distinguishes it from a red dog or a yellow dog?"He replied, "Nephew, I asked the Messenger of Allah ﷺ just as you have asked me, and he said, 'The black dog is a devil.'"

Muslim 1137

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا إسمعيل ابن علية قال ح و حدثني زهير بن حرب حدثنا إسمعيل بن إبراهيم عن يونس عن حميد بن هلال عن عبد الله بن الصامت

عن أبي ذر قال

قال رسول الله ﷺ إذا قام أحدكم يصلي فإنه يستره إذا كان بين يديه مثل آخرة الرحل فإذا لم يكن بين يديه مثل آخرة الرحل فإنه يقطع صلاته الحمار والمرأة والكلب الأسود قلت يا أبا ذر ما بال الكلب الأسود من الكلب الأحمر من الكلب الأصفر قال يا ابن أخي سألت رسول الله ﷺ كما سألتني فقال الكلب الأسود شيطان

مسلم 1137صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
What the praying person should cover
Numbering
Darussalam 1137
Muslim 1137