Killing harmful dogs

Q 2: What is the ruling on killing harmful dogs and other harmful animals which spoil crops by sleeping, urinating and running over them? Is killing them unlawful?

A: It is permissible to kill harmful dogs to avoid their harm because of the saying of the Prophet (peace be upon him), Five are the harmful things which should be killed in the state of Ihram or otherwise... From among them was the dog known for biting people. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.