the Messenger of Allah commanded that dogs be killed, except those which were exempted.

Sunan an-Nasa'i Book 42, Hadith 15