Keeping a dog is not permitted by default — the scholars' rule is that acquiring a dog is forbidden unless it serves a genuine need. The recognised needs are hunting, guarding livestock and guarding crops, and the majority of scholars extend this to guarding a home or property when there is a real need for it. Keeping a dog simply as a pet, for its looks or for prestige, is forbidden without disagreement.
Why the default is prohibition
The ruling rests on a warning the Prophet ﷺ gave about what a person loses, not merely about what they do. Every day a dog is kept without a valid reason, the keeper's reward is diminished.
"Whoever keeps a dog, except a dog for livestock or hunting or crops, loses a qirat of his reward every day."— Sahih al-Bukhari and Sahih Muslim, from Abu Hurayrah
The scholars drew the ruling from the loss itself. Ibn 'Uthaymeen explains the reasoning in his commentary on Bulugh al-Maram: punishment can come either as a penalty imposed or as a good thing withheld, and this hadith belongs to the second kind — the reward is simply lost. Since the Lawgiver warns against the act, the act is prohibited. He also notes that the word "dog" here is indefinite in a conditional sentence, so it covers every dog, whatever its colour or breed.
Al-Nawawi's summary is the one the later scholars lean on:
"The Prophet ﷺ permitted the hunting dog and the sheep dog, and in the other narration the crop dog, and forbade keeping anything else. Our companions and others agreed that it is forbidden to keep a dog without need — such as keeping one out of admiration for its appearance or to boast with it; this is forbidden without any disagreement."— al-Nawawi, quoted in IslamWeb fatwa 199387
What counts as a need
The exception is not a loophole; it is tied to a purpose the dog actually serves. The scholars list the permitted categories and then ask whether others share the same reason.
- Hunting: the dog is the means by which the game is taken, which is why Ibn 'Uthaymeen opens his chapter on hunting with this hadith — the tool must be understood before the act.
- Livestock: the reason the scholars give is protection — from theft and from predatory animals.
- Crops: guarding the field from thieves and from animals wandering in.
- Guarding a home, shop or property: the majority of scholars applied the same reasoning here. IslamWeb (fatwa 14735) states that the scholars identified the reason in the livestock case as protection, and then extended it by analogy to guarding houses and shops. Ibn 'Uthaymeen goes further: someone living far from any settlement who keeps a dog to protect his family and himself is covered a fortiori, and dogs used to track thieves are permitted because the need is real and the benefit is public.
The condition attached to all of this is need. IslamWeb (fatwa 18892) puts it plainly: the majority drew the guarding dog into the same ruling as the hunting and livestock dog, but only on the condition that there is actual need — if you fear thieves or enemies, there is no blame.
Where the scholars differ
The disagreement is narrow and worth knowing, because it decides how strictly you read the exception.
| Position | Who holds it | Basis |
|---|---|---|
| Guarding a home is permitted | The majority, and the position IslamWeb calls preponderant | Analogy with the three named in the hadith |
| Guarding a home is forbidden | A group of scholars | The concession was given only for the three named cases |
Ibn Baz takes the stricter line. Asked about keeping a dog to guard the house, he answered that keeping a dog for farming, sheep or hunting is fine, but placing one in the house as a guard is not — the Prophet ﷺ permitted it in three cases only, and anything beyond that is prevented. IslamWeb, by contrast, records the majority view as the preponderant one, and Ibn 'Uthaymeen argues that the Sacred Law does not separate two like cases, and that no reason exists to distinguish the three named purposes from what resembles them.
Note what is not disputed: keeping a dog for no need at all. Al-Nawawi reports agreement that this is forbidden, and Ibn 'Uthaymeen calls the preponderant view that acquiring dogs is prohibited.
If you do keep one
The permission concerns the dog's existence, not free run of the house. Several conditions follow from the sources:
- Keep it outside the living space. IslamWeb (fatwa 14735) instructs that whoever needs a dog should place it outside his dwelling, not inside it, because the dog is ritually impure and its presence in the house drives the angels out.
- Do not let it share the household's living arrangements. IslamWeb (fatwa 99109) describes bringing dogs into homes and sharing life with them as a foreign custom that contradicts the rulings urging distance from impurity.
- Clean anything it touches. If its saliva reaches a vessel or your clothing, it must be washed seven times, one of them with earth. Prayer is valid on ground its impurity has not touched; if it has, the ground must be purified first.
- Feeding and watering it is rewarded when keeping it is permitted. The Prophet ﷺ told of a man who gave a thirsty dog water and was forgiven, and when asked whether there is reward in animals, he said: "In every moist liver there is a reward." (Sahih al-Bukhari and Sahih Muslim)
- If the need ends, the permission ends. IslamWeb (fatwa 221191) rules that if a guard dog becomes ill and is no longer fit to guard, you are not obliged to keep it or its pups — you must remove them. Fatwa 77369 gives the same answer where there is no pressing need: give the dog to someone who needs it, and advise them to keep it outside the house.
One point the sources raise that is easy to miss: the wrong is not in the animal but in the choice. Ibn 'Uthaymeen remarks that people who keep dogs for show have inverted things — feeding the dog the best meat while the owner eats poorly — and that this is a corruption of religion and of reason alike.
Key takeaways
- Keeping a dog without a real need is forbidden, and al-Nawawi reports no disagreement on this.
- Permitted purposes are hunting, livestock and crops, with the majority extending the ruling to guarding a home or property when there is genuine need.
- Ibn Baz holds the stricter view that a house-guarding dog is not covered by the concession; the majority position is that it is.
- A permitted dog stays outside the living quarters, and anything its saliva touches is washed seven times, one with earth.
- If the need disappears, the permission disappears with it — the dog should be passed to someone who needs it.
Further reading
- Ibn 'Uthaymeen, Fath Dhi al-Jalal wa al-Ikram (commentary on Bulugh al-Maram), chapter on hunting and slaughter
- al-Nawawi's commentary as cited in the fatwas of IslamWeb
- IslamWeb fatwas 14735, 18892, 99109 and 199387
And Allah knows best.
Sources6
This is a guide to what the scholars have said, not a fatwa. For your own situation, ask a qualified scholar who can hear the details.