Hadith 1228:9
Abu ‘Amir narrated to us, he said: Ya‘qub ibn Muhammad ibn Tahla’ narrated to us, Abu al-Rijal narrated to us, from Salim ibn ‘Abd Allah, from Abu Rafi‘, who said: "The Messenger of Allah, may Allah bless him and grant him peace, commanded me to kill dogs." So I went out killing them; I would not see a dog except that I killed it. Then, there was a dog circling a house, so I went to kill it. A person called out to me from inside the house: "O servant of Allah, what do you intend to do?" I said: "I intend to kill this dog." She said: "I am a woman who is neglected, and this dog drives away the predatory beasts from me and warns me of those who come. So go to the Prophet, may Allah bless him and grant him peace, and mention that to him." He said: So I came to the Prophet, may Allah bless him and grant him peace, and mentioned that to him, and he commanded me to kill it.
حدثنا أبو عامر، قال: حدثنا يعقوب بن محمد بن طحلاء، حدثنا أبو الرجال، عن سالم بن عبد الله، عن أبي رافع قال: " أمرني رسول الله صلى الله عليه وسلم أن أقتل الكلاب "، فخرجت أقتلها لا أرى كلبا إلا قتلته، فإذا كلب يدور ببيت فذهبت لأقتله ، فناداني إنسان من جوف البيت: يا عبد الله، ما تريد أن تصنع؟ قال: قلت: أريد أن أقتل هذا الكلب، فقالت: إني امرأة مضيعة ، وإن هذا الكلب يطرد عني السبع ويؤذنني بالجائي، فائت النبي صلى الله عليه وسلم فاذكر ذلك له، قال: فأتيت النبي صلى الله عليه وسلم فذكرت ذلك له فأمرني بقتله