Abdullah bin Umar reported,

The Messenger of Allah ﷺ ordered that dogs be killed, except hunting dogs and dogs used for guarding livestock.Someone said to him, "Abu Hurayrah used to add 'or a dog used for guarding crops.'"He replied, "Abu Hurayrah has crops."

Tirmidhi 1488

Sahih

حدثنا قتيبة حدثنا حماد بن زيد عن عمرو بن دينار

عن ابن عمر

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

الترمذي 1488صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Hunting and slaughtering
Chapter
One who keeps a dog and what is reduced from his reward
Numbering
Darussalam 1488
Tirmidhi 1488