God’s messenger ordered us to kill dogs, and we were even killing a dog which a woman brought with her from the desert. Afterwards God’s messenger forbade us to kill dogs, saying, "Confine yourselves to the type which is pure black and has two spots, for it is a devil."
Abdallah b. Mughaffal reported the Prophet as saying, "Were dogs not a species of creature I should command that they all be killed; but kill every pure black one."
Abu Dawud and Darimi transmitted it. Tirmidhi and Nasa'i added, "No family attaches itself to a dog without a qirat of their good deeds being deducted daily, except in the case of a hunting dog, a farm dog, or a sheepdog.”
Abu Huraira reported God’s messenger as saying, "If anyone gets a dog, except a sheepdog or a hunting dog or a farm dog, a qirat of his reward will be deducted daily."