Abdullah bin Mughafal reported,

The Messenger of Allah ﷺ ordered that dogs be killed, then he said, "What is the matter with them and dogs?" Then he permitted them to keep dogs for guarding crops and dogs for guarding the ayn. Bundar said, the ayn refers to the walled gardens of Madinah.

Ibn Majah 3201

Sahih

حدثنا محمد بن بشار حدثنا عثمان بن عمر ح و حدثنا محمد بن الوليد حدثنا محمد بن جعفر قالا حدثنا شعبة عن أبي التياح قال سمعت مطرفا

عن عبد الله بن مغفل

أن رسول الله ﷺ أمر بقتل الكلاب ثم قال ما لهم وللكلاب ثم رخص لهم في كلب الزرع وكلب العين قال بندار العين حيطان المدينة

ابن ماجه 3201صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Hunting
Chapter
Killing dogs except for hunting or farming dogs
Numbering
Darussalam 3201
Ibn Majah 3201