Islamic Fiqh > Foods and drinks > Keeping a dog and companion animals
The dog in the house, cats, birds: what the Sunna permits, what it discourages, and the dog-related cleanliness.
Keeping a dog is agreed upon for its useful purposes: hunting, farming or ploughing, livestock, with no divergence according to an-Nawawi; outside these utilities, a qirat is deducted each day (al-Bukhari 2197, Muslim 1574-1575). Beyond that, the schools part: the Hanafis permit the dog for any lawful benefit, guarding the house and property; the Malikis forbid it in houses outside the named uses, pressing need widening the permission. No text opens a “companion dog” category without utility: each case is classified by its recognized utility and the measure of the hadith. Cats and birds raise no keeping problem.
Table of Contents :
Updated on 07 October 2026 at 6:42 PM
The dog holds a distinct place in the fiqh of foods and hunting: admitted and unanimously approved in certain uses, repressed outside these needs. The encyclopedia of the four schools frames the whole question from the hadiths of the qirat, the measure of reward deducted each day from the one who keeps a dog without utility, then the scholars classify each case in it: useful dog, guard dog, puppy in training, prestige dog.
Whoever keeps a dog, a qirat of his work is deducted from him each day, except a farm dog or a herding dog.
al-Bukhari 2197; Muslim 1575 (from Abu Hurayra)
The people of knowledge agree on the permission to keep the hunting dog, the farm dog and the herding dog: an-Nawawi says so without divergence, for the need calls for the animal in these 3 uses. The versions of the hadith complete one another: Ibn Sirin and Abu Salih, from Abu Hurayra, add 'except a herding dog, a farm dog or a hunting dog'; Abu Hazim, from Abu Hurayra, limits himself to 'a hunting dog or a herding dog'.
Muslim brings the precision on the measure: 'whoever keeps a dog that is neither a hunting dog, nor a herding dog, nor a land dog, 2 qirat of his reward are deducted from him each day'. Ibn Umar reports the same measure: 'whoever keeps a dog, except a herding dog or a hunting dog, 2 qirat of his work are deducted from him each day' (Muslim 1574). The hadith thus fixes the sanction, 1 or 2 qirat according to the versions, and the exceptions that suspend it; the legal motive is the need, as al-Muhadhdhab notes: keeping is permitted wherever the need calls for the dog.
The Hanafis permit keeping a dog for any lawful benefit: hunting, guarding fields, herds, houses and property. Muhammad ibn al-Hasan reports the school: 'keeping a dog without benefit is disliked; as for the dog of the fields, of the herd, of the hunt or of the guard, there is no harm' (al-Muwatta). The Hanafis explain the texts of severity by their context: upon arriving in Medina, where dogs were familiar with houses, the Prophet tightened the rule to cut the habit, then the rule lightened (at-Tajrid, al-Hidaya).
The Shafi'is carry the question into 2 views reported by al-Shirazi: keeping a dog to watch the alleys, one refuses by holding to the hadith, the other permits because it is the guarding of a property, in the image of the field and the herd. An-Nawawi decides for the school: the strongest view, that of the text of al-Shafi'i in the Mukhtasar, allows the dog 'for hunting, the herd, the fields and what is in their sense'; the guarding of houses and alleys is part of it, likewise guarding in travel, and the strongest of the 2 views also allows the dog kept to hunt later without hunting now (al-Majmu', Sharh Sahih Muslim).
The Hanbalis, with Ibn Qudama, refuse the keeping of houses by holding to the hadith, while reporting the Shafi'i view by analogy with the 3 uses. The judge Abu Yala objects: the dog is not comparable to the 3, for the thief can coax it with food before taking the property, and the dog housed in town hinders passers-by, unlike the dog that guards in the field (al-Mughni).
The Malikis, on the Risala of Ibn Abi Zayd, admit the dog in houses, in town as in camps, only for a field, for a herd that it accompanies to pasture and brings back, or for a hunt that feeds the man and his family, not for play.
An-Nafrawi clarifies the reading of the school: the prohibition is understood rather as disliked, unless the dog is a biter, in which case it is forbidden; and the Malikis discuss whether the permission is tied to the time of the need, the dog having to be released once the need has passed, or whether it remains: the 2 views exist.
The Maliki restriction is conditioned by need. Ibn Naji writes it in his commentary on the Risala: the rule must be understood except for the necessity of guarding one's place or protecting one's person, until the impediment disappears. The author of the Risala himself gave the example: a wall of his house having collapsed and fearing for his life before a hostile group, he took a guard dog; asked about the rule of Malik which forbids the dog outside the 3 uses, he answered: 'if Malik had lived in our time, he would have taken a fierce lion' (sharh Ibn Naji, sharh al-Zarqani).
Ibn Abd al-Barr widens the door: keeping dogs is permitted for all benefits and to repel harms when man needs it; outside the cases named by the texts, keeping remains disliked because of the diminution of the reward (at-Tamhid). The Malikis finally tie the use of the hunt to intention, a precious detail for the useful animal: it is obligatory if it feeds one's family without other means, forbidden if the edible animal is hunted without intention of lawful slaughter, recommended for ease, disliked for mere play, permitted for the rest, like buying fruit (an-Nafrawi).
Raising a puppy with a view to hunting, farming or the herd is permitted in the stronger of the 2 positions: the intention gives the young the status of the adult, like the child slave or the foal one buys without immediate benefit; above all, no dog becomes a hunting dog without being raised and trained, per the word of Allah: 'hunting beasts that you have trained, teaching them what Allah has taught you' (sura al-Ma'ida 4). The second view refuses, for lack of the puppy counting among the 3 uses.
The Shafi'is note that the agreement of the companions of the school bears on the adult dog taken for training; the divergence concerns only the puppy, and the strongest view allows as well the puppy kept to hunt when the day comes (al-Mughni, al-Majmu').
The Shafi'is agree, and the other scholars with them, on the prohibition of keeping a dog without any need, for example for its beauty or to draw prestige from it: it is forbidden without divergence. The dog kept without utility falls under the measure of the hadith, 1 or 2 qirat deducted each day.
Al-Mawardi nevertheless reports from Abu Hanifa the permission to keep it in every situation, even without benefit, by analogy with the mules and donkeys one keeps without immediate utility, the pig being the converse example: it is a view reported from him, which does not belong to the rule of the 3 uses of the hadith (al-Hawi al-Kabir).
On the other animals, the chapter of the encyclopedia treats only the dog: no text opens a companion-dog category. Each case is thus classified on the grid of the schools: lawful benefit among the Hanafis, named uses and pressing need among the Malikis, analogy with the 3 uses among the Shafi'is, holding to the text among the Hanbalis. The cat and the birds are the object of no restriction in this chapter.
Two questions sum up the page: is the utility real, hunting, herd, farming, legitimate guarding of a property or protection of the person; and the hadith of the qirat fixes the measure for the dog kept without it. Between the 2, need, as the example of Ibn Abi Zayd shows, widens the permission in every reading.
Al-Mughni by Ibn Qudama · Hanbali school
Ibn Qudama said: it is not permitted to keep a dog, except the hunting dog, the herding dog or the farm dog. If he keeps it to guard the houses, it is not permitted per the hadith; and it may be that it be permitted: this is the view of the companions of al-Shafi'i, for it is in the sense of the 3 uses and measured upon them. The first is the strongest, for measuring upon the 3 uses would permit what the hadith includes of prohibition.
The judge said: it is not in their sense, for the thief tricks it with some food he gives it, then steals the property; the wolf, for its part, does not undergo that. And its keeping in the houses harms passers-by, unlike the desert.
Al-Hawi al-Kabir by al-Mawardi · Shafi'i school
Al-Mawardi said: al-Shafi'i said: 'it is not permitted to keep the dog, except for a man of hunting, of farming or of herding, or what is in their sense'. It is as he said: it is not permitted to keep the dog, except in deriving benefit, and then its keeping is permitted.
Abu Hanifa said: it is permitted to keep it in every situation, even without deriving benefit; he relies on the fact that any animal whose keeping is permitted when one benefits from it, the keeping of its whole species is permitted even without benefit, like mules and donkeys as regards permission, and the pig conversely.
This is the classic point of divergence. The Shafi'is permit it in the strongest view, since guarding property falls within the meaning of the three uses in the hadith; the Hanafis allow any lawful benefit; the Hanbalis stick to the text and refuse; the Malikis admit it under pressing need, as shown by Ibn Abi Zayd taking a guard dog when his wall collapsed.
According to the versions of the hadith of Abu Hurayra and Ibn Umar: one qirat deducted each day in al-Bukhari 2197, two qirats in Muslim 1574-1575. The three uses, hunting, farming and herding, suspend the measure entirely, by consensus of the scholars.
Yes. The scholars agree on the permission to keep the hunting, farming and herding dog; al-Nawawi states it without disagreement, and the need that calls for the animal in these three uses is the legal rationale (al-Muhadhdhab).
Yes, in the stronger of two positions: a puppy raised for one of the three uses takes the intended ruling, since no dog becomes a hunting dog without training, per the verse on trained hunting beasts (al-Ma'ida 4). The second view refuses, the puppy not being among the three uses (al-Mughni, al-Majmu').
Ibn Abi Zayd's Risala limits the dog to the three uses: field, pastured flock, hunting for a living. But Ibn Naji conditions the prohibition on the absence of need: guarding a place or an endangered person prevails, and the Risala's own author took a dog fearing for his life, answering that Malik would have taken a lion in his place.
No. The encyclopedia chapter deals only with the dog: the qirat hadith, the conditions of keeping and the schools' divergence concern it exclusively. No text in this chapter restricts keeping cats or birds.
Editorial method and corpus: see our editorial transparency page.