Is the killing of a dog whose keeping is permissible considered forbidden (Haram)?

Chapter on Selling the Musarrah (Animal with milk retained in udder)

Al-Mughni

Book of Sales

Book 12 · Issue 3 · Bab 5

Open in Qurani

Primary text

It is forbidden to destroy a dog whose keeping is permissible because it is an object of permissible benefit, and destroying it is analogous to destroying a permissible sheep. The person who does so is sinful and unjust. There is no known dispute regarding this prohibition.