Abdullah bin Umar reported,

The Messenger of Allah ﷺ ordered that dogs be killed except for a hunting dog or a dog used to guard sheep or livestock.Someone said to Ibn Umar, "Abu Hurairah adds, 'or a dog that guards crops.'"Ibn Umar replied, "Abu Hurairah has crops."

Azami 5809

Sahih

عن ابن عمر

أن رسول الله ﷺ أمر بقتل الكلاب إلا كلب صيد، أو كلب غنم، أو ماشية. فقيل لابن عمر: إن أبا هريرة يقول: أو كلب زرع. فقال ابن عمر: إن لأبي هريرة زرعا.

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