Abu Dharr reported,

The Prophet ﷺ said, "The prayer is invalidated, when there is nothing like the back of a saddle in front of the man, by a woman, a donkey, or a black dog."I asked, "What is the matter with a black dog rather than a red one?"He replied, "I asked the Messenger of Allah ﷺ just as you have asked me, and he said, 'The black dog is a devil.'"

Ibn Majah 952

Sahih

حدثنا محمد بن بشار حدثنا محمد بن جعفر حدثنا شعبة عن حميد بن هلال عن عبد الله بن الصامت

عن أبي ذر

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

ابن ماجه 952صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
What interrupts prayer
Numbering
Darussalam 952
Ibn Majah 952