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.
ibnmajah:3203Abū Ṭāhir > Ibn Wahb > Yūnus > Ibn Shihāb > Sālim from his father

“I heard the Messenger of Allah ﷺ raising his voice and commanding that dogs be killed, and dogs were killed, except for hunting dogs or dogs kept for herding livestock.”  

ابن ماجة:٣٢٠٣حَدَّثَنَا أَبُو طَاهِرٍ حَدَّثَنَا ابْنُ وَهْبٍ أَخْبَرَنِي يُونُسُ عَنِ ابْنِ شِهَابٍ عَنْ سَالِمٍ عَنْ أَبِيهِ قَالَ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ رَافِعًا صَوْتَهُ يَأْمُرُ بِقَتْلِ الْكِلاَبِ وَكَانَتِ الْكِلاَبُ تُقْتَلُ إِلاَّ كَلْبَ صَيْدٍ أَوْ مَاشِيَةٍ  


See similar narrations below:

Collected by Nasāʾī, Ṭabarānī, Nasāʾī's Kubrá
nasai:4278And Hb b. Bayān > Ibn Wahb > Yūnus > Ibn Shihāb > Sālim b. ʿAbdullāh from his father

"I heard the Messenger of Allah raise his voice with the command to kill dogs. All dogs were to be killed except dogs used for hunting or herding livestock."  

النسائي:٤٢٧٨أَخْبَرَنَا وَهْبُ بْنُ بَيَانٍ قَالَ حَدَّثَنَا ابْنُ وَهْبٍ قَالَ أَخْبَرَنِي يُونُسُ قَالَ قَالَ ابْنُ شِهَابٍ حَدَّثَنِي سَالِمُ بْنُ عَبْدِ اللَّهِ عَنْ أَبِيهِ قَالَ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ رَافِعًا صَوْتَهُ يَأْمُرُ بِقَتْلِ الْكِلاَبِ فَكَانَتِ الْكِلاَبُ تُقْتَلُ إِلاَّ كَلْبَ صَيْدٍ أَوْ مَاشِيَةٍ  

tabarani:13423Muḥammad b. ʿAlī al-Marwazī > Muḥammad b. ʿAbdullāh b. Quhzādh > ʿAlī b. al-Ḥasan > Abū Ḥamzah > ʿAbd al-Karīm > Nāfiʿ > Ibn ʿUmar

[Machine] "The Messenger of Allah ﷺ has commanded us to kill dogs, except for hunting dogs or guard dogs."  

الطبراني:١٣٤٢٣حَدَّثَنَا مُحَمَّدُ بْنُ عَلِيٍّ الْمَرْوَزِيُّ ثنا مُحَمَّدُ بْنُ عَبْدِ اللهِ بْنِ قُهْزَاذَ ثنا عَلِيُّ بْنُ الْحَسَنِ أنا أَبُو حَمْزَةَ عَنْ عَبْدِ الْكَرِيمِ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ قَالَ

«أَمَرَنَا رَسُولُ اللهِ ﷺ بِقَتْلِ الْكِلَابِ إِلَّا كَلْبَ صَيْدٍ أَوْ كَلْبَ مَاشِيَةٍ»  

nasai-kubra:4771And Hb b. Bayān al-Miṣrī > Ibn Wahb > Yūnus > Ibn Shihāb > Sālim b. ʿAbdullāh from his father

“I heard the Messenger of Allah ﷺ raising his voice and commanding that dogs be killed, and dogs were killed, except for hunting dogs or dogs kept for herding livestock.” (Using translation from Ibn Mājah 3203)  

الكبرى للنسائي:٤٧٧١أَخْبَرَنَا وَهْبُ بْنُ بَيَانٍ الْمِصْرِيُّ قَالَ حَدَّثَنَا ابْنُ وَهْبٍ قَالَ أَخْبَرَنِي يُونُسُ قَالَ قَالَ ابْنُ شِهَابٍ حَدَّثَنِي سَالِمُ بْنُ عَبْدِ اللهِ عَنْ أَبِيهِ قَالَ

سَمِعْتُ رَسُولَ اللهِ ﷺ رَافِعًا صَوْتَهُ «يَأْمُرُ بِقَتْلِ الْكِلَابِ فَكَانَتِ الْكِلَابُ تُقْتَلُ إِلَّا كَلْبَ صَيْدٍ أَوْ مَاشِيَةٍ»