Jabir bin Abdullah reported,

The Messenger of Allah ﷺ commanded us to kill dogs, to the point that when a woman came in from the desert with her dog, we would kill it. Then the Prophet ﷺ forbade killing them and said, "You must kill the pure black dog with two spots, for it is a devil."

Muslim 4020

Sahih

حدثنا محمد بن أحمد بن أبي خلف حدثنا روح ح و حدثني إسحق بن منصور أخبرنا روح بن عبادة حدثنا ابن جريج أخبرني أبو الزبير أنه سمع

جابر بن عبد الله يقول

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

مسلم 4020صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Sharecropping of orchards
Chapter
Command to kill dogs, its abrogation, and the prohibition of keeping them except for hunting, farming, livestock, and similar purposes
Numbering
Darussalam 4020
Muslim 4020