Ikrimah said: Except a dog for farming, a dog for hunting, a dog for livestock, or a dog kept for protection against fear.