Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:27188Abū ʿĀmir > Yaʿqūb b. Muḥammad b. Ṭaḥlāʾ > Abū al-Rijāl > Sālim b. ʿAbdullāh > Abū Rāfiʿ

[Machine] The Messenger of Allah ﷺ commanded me to kill the dogs. So I went out and killed them. I would not see a dog without killing it. Then, there was a dog wandering around a house, so I went to kill it. Then, a person from inside the house called out to me, "O Abdullah, what do you want to do?" I said, "I want to kill this dog." He said, "I am a pregnant woman, and this dog keeps away the wolves and protects me from harm. Go and inform the Prophet ﷺ about this." So, I went to the Prophet ﷺ and informed him about it. He commanded me to spare its life.  

أحمد:٢٧١٨٨حَدَّثَنَا أَبُو عَامِرٍ قَالَ حَدَّثَنَا يَعْقُوبُ بْنُ مُحَمَّدِ بْنِ طَحْلَاءَ حَدَّثَنَا أَبُو الرِّجَالِ عَنْ سَالِمِ بْنِ عَبْدِ اللهِ عَنْ أَبِي رَافِعٍ قَالَ

أَمَرَنِي رَسُولُ اللهِ ﷺ أَنْ أَقْتُلَ الْكِلَابَ فَخَرَجْتُ أَقْتُلُهَا لَا أَرَى كَلْبًا إِلَّا قَتَلْتُهُ فَإِذَا كَلْبٌ يَدُورُ بِبَيْتٍ فَذَهَبْتُ لِأَقْتُلَهُ فَنَادَانِي إِنْسَانٌ مِنْ جَوْفِ الْبَيْتِ يَا عَبْدَ اللهِ مَا تُرِيدُ أَنْ تَصْنَعَ؟ قَالَ قُلْتُ أُرِيدُ أَنْ أَقْتُلَ هَذَا الْكَلْبَ فَقَالَتْ إِنِّي امْرَأَةٌ مُضَيَّعَةٌ وَإِنَّ هَذَا الْكَلْبَ يَطْرُدُ عَنِّي السَّبُعَ وَيُؤْذِنُنِي بِالْجَائِي فَائْتِ النَّبِيَّ ﷺ فَاذْكُرْ ذَلِكَ لَهُ قَالَ فَأَتَيْتُ النَّبِيَّ ﷺ فَذَكَرْتُ ذَلِكَ لَهُ فَأَمَرَنِي بِقَتْلِهِ