The Messenger of Allah ﷺ ordered that dogs be killed, except for those he exempted.
أخبرنا قتيبة بن سعيد عن مالك عن نافع
أن رسول الله ﷺ أمر بقتل الكلاب غير ما استثنى منها
No references are available.
Bukhari narrated it in the Book of the Beginning of Creation, Chapter, If a fly falls into the drink of one of you, let him dip it in, etc, hadith 1570/etc, hadith 3323, and Muslim in the Book of Sharecropping, Chapter on the command to kill dogs and the explanation of its abrogation, 43, from the hadith of Malik through this chain, and it is in Muwatta (Yahya), 969/2, and Kubra, hadith 4788.