Sunan Ibn Majah, Book 28, Hadith 3321 (In-Book) ⓘ
It was narrated from ‘Abdullah bin Mughaffal that the Messenger of Allah commanded that dogs be killed, then he said: “What do they use dogs for?” Then he permitted them to keep hunting dogs.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا شَبَابَةُ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي التَّيَّاحِ، قَالَ سَمِعْتُ مُطَرِّفًا، يُحَدِّثُ عَنْ عَبْدِ اللَّهِ بْنِ مُغَفَّلٍ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ أَمَرَ بِقَتْلِ الْكِلاَبِ ثُمَّ قَالَ " مَا لَهُمْ وَلِلْكِلاَبِ " . ثُمَّ رَخَّصَ لَهُمْ فِي كَلْبِ الصَّيْدِ .
also referenced under: Hadith 3200 (Reference) & Volume 4, Book 28, Hadith 3200 (DarusSalam)