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.
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)  

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

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


See similar narrations below:

Collected by Nasāʾī, Ibn Mājah
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."  

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

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

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.”  

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

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