مِشْكَاةُ الْمَصَابِيحِ
Mishkat al-Masabih 4101
Game and Animals Which May Be Slaughtered
Dogs - Section 1
وَعَنِ ابْنِ عُمَرَ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَمَرَ بِقَتْلِ الْكِلَابِ إِلَّا كَلْبَ صيدٍ أَو كلب غنم أَو مَاشِيَة
Ibn ‘Umar said the Prophet (ﷺ) ordered dogs to be killed, except hunting dogs or sheepdogs or dogs used for looking after animals. (Bukhari and Muslim.)
Mishkat al-Masabih, 4101مُتَّفَقٌ عَلَيْهِ (الألباني)