“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)
سَمِعْتُ رَسُولَ اللهِ ﷺ رَافِعًا صَوْتَهُ «يَأْمُرُ بِقَتْلِ الْكِلَابِ فَكَانَتِ الْكِلَابُ تُقْتَلُ إِلَّا كَلْبَ صَيْدٍ أَوْ مَاشِيَةٍ»