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."
أن رسول الله ﷺ أمر بقتل الكلاب إلا كلب صيد، أو كلب غنم، أو ماشية. فقيل لابن عمر: إن أبا هريرة يقول: أو كلب زرع. فقال ابن عمر: إن لأبي هريرة زرعا.