Ibn Mughafal reported,

The Messenger of Allah ﷺ ordered that dogs be killed, then he said, "What is the matter with them and with dogs?" Then he gave permission to keep dogs for hunting and for guarding sheep.

Azami 5811

Sahih

عن ابن المغفل قال

أمر رسول الله ﷺ بقتل الكلاب، ثم قال: ما بالهم، وبال الكلاب؟ ثم رخص في كلب الصيد والغنم.

الأعظمي 5811صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Prohibited sales
Section
Commandment to kill dogs
Numbering
Jami al-Kamil 5811 (2nd edition)
Azami 5811