(10) بَاب الْأَمْرِ بِقَتْلِ الْكِلَابِ وَبَيَانِ نَسْخِهِ وَبَيَانِ تَحْرِيمِ اقْتِنَائِهَا إِلَّا لِصَيْدٍ أَوْ زَرْعٍ أَوْ مَاشِيَةٍ وَنَحْوِ ذَلِكَ
Ibn 'Umar (Allah be pleased with them) reported:
Allah's Messenger (ﷺ) ordered to kill dogs, and he sent (men) to the corners of Medina that they should be killed.
Reference: Sahih Muslim 1570 b
In-book reference: Book 22, Hadith 56
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3810