Abu Rafi reported,

The Messenger of Allah ﷺ commanded me to kill dogs, so I went out killing them. I would not see a dog without killing it, when I came upon a dog circling a house. I went to kill it, but a person called out to me from inside the house, "Abdullah, what are you trying to do?"I replied, "I want to kill this dog."She said, "I am a woman living alone without protection, and this dog drives wild beasts away from me and alerts me when someone approaches. So go to the Prophet ﷺ and mention this to him."So I went to the Prophet ﷺ and mentioned it to him, and he ordered me to kill it.

Ahmad 27188

Sahih

حدثنا أبو عامر قال حدثنا يعقوب بن محمد بن طحلاء حدثنا أبو الرجال عن سالم بن عبد الله

عن أبي رافع قال

أمرني رسول الله ﷺ أن أقتل الكلاب فخرجت أقتلها لا أرى كلبا إلا قتلته فإذا كلب يدور ببيت فذهبت لأقتله فناداني إنسان من جوف البيت يا عبد الله ما تريد أن تصنع قال قلت أريد أن أقتل هذا الكلب فقالت إني امرأة مضيعة وإن هذا الكلب يطرد عني السبع ويؤذنني بالجائي فأت النبي ﷺ فاذكر ذلك له قال فأتيت النبي ﷺ فذكرت ذلك له فأمرني بقتله

أحمد 27188صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Rafi
Numbering
Darussalam 27188
Ahmad 27188