# Is Keeping Cats or Dogs as Pets Permissible in Islam, and Does It Affect Prayer?

> Showing mercy to animals is a deeply rewarded act in Islam: cats were explicitly praised in prophetic tradition as clean companions of the household, and the Qur’an honors the loyal dog of the Companions of the Cave in Surah Al-Kahf 18:22.

## 18:22

سَيَقُولُونَ ثَلَٰثَةٌۭ رَّابِعُهُمْ كَلْبُهُمْ وَيَقُولُونَ خَمْسَةٌۭ سَادِسُهُمْ كَلْبُهُمْ رَجْمًۢا بِٱلْغَيْبِ ۖ وَيَقُولُونَ سَبْعَةٌۭ وَثَامِنُهُمْ كَلْبُهُمْ ۚ قُل رَّبِّىٓ أَعْلَمُ بِعِدَّتِهِم مَّا يَعْلَمُهُمْ إِلَّا قَلِيلٌۭ ۗ فَلَا تُمَارِ فِيهِمْ إِلَّا مِرَآءًۭ ظَٰهِرًۭا وَلَا تَسْتَفْتِ فِيهِم مِّنْهُمْ أَحَدًۭا

They will say there were three, the fourth of them being their dog; and they will say there were five, the sixth of them being their dog - guessing at the unseen; and they will say there were seven, and the eighth of them was their dog. Say, [O Muhammad], "My Lord is most knowing of their number. None knows them except a few. So do not argue about them except with an obvious argument and do not inquire about them among [the speculators] from anyone."

## 6:75

وَكَذَٰلِكَ نُرِىٓ إِبْرَٰهِيمَ مَلَكُوتَ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ وَلِيَكُونَ مِنَ ٱلْمُوقِنِينَ

And thus did We show Abraham the realm of the heavens and the earth that he would be among the certain [in faith]

## 17:70

۞ وَلَقَدْ كَرَّمْنَا بَنِىٓ ءَادَمَ وَحَمَلْنَٰهُمْ فِى ٱلْبَرِّ وَٱلْبَحْرِ وَرَزَقْنَٰهُم مِّنَ ٱلطَّيِّبَٰتِ وَفَضَّلْنَٰهُمْ عَلَىٰ كَثِيرٍۢ مِّمَّنْ خَلَقْنَا تَفْضِيلًۭا

And We have certainly honored the children of Adam and carried them on the land and sea and provided for them of the good things and preferred them over much of what We have created, with [definite] preference.

## Short & Direct Answer: The Islamic Perspective

Showing mercy to animals is a deeply rewarded act in Islam: cats were explicitly praised in prophetic tradition as clean companions of the household, and the Qur’an honors the loyal dog of the Companions of the Cave in Surah Al-Kahf 18:22.

As shown in the verified scripture cards on this page, **Surah Al-Kahf (18:22)**, **Surah Al-An'am (6:75)**, and **Surah Al-Isra (17:70)** address both the inward state of the heart and the outward practical steps required in daily life.

## How the Qur’an Illuminates This Question

Regarding dogs inside living spaces, classical schools of law hold nuanced views on ritual purity: while the Shafi’i and Hanbali schools consider a dog’s saliva impure, the Hanafi school considers its fur pure, and the Maliki school rules that every living animal—including a dog’s saliva—is ritually pure (tahir). Keeping your prayer space clean ensures your salah is always valid.

First, [Surah Al-Kahf (18:22)](/en/surah/al-kahf) re-centers the believer’s perspective around divine wisdom and trust.

Second, [Surah Al-An'am (6:75)](/en/surah/al-anam) establishes the harmony between inward sincerity and outward responsibility. Finally, **Surah Al-Isra (17:70)** protects the believer from the two extremes of despair and negligence, guiding the soul toward a balanced middle path.

## Practical Steps You Can Take Today

Treat all animals with compassion, and if you care for pets, simply keep a clean prayer mat and garment dedicated to your daily salah.

- **Reflect on the Verses Above:** Take a quiet moment after prayer to read the verified cards for **Surah Al-Kahf (18:22)** and **Surah Al-Isra (17:70)** on this page, letting their meaning settle into your heart.

## Is Having a Dog Haram? What Scholars Actually Say

Islam distinguishes between keeping a dog for a genuine need and keeping it purely as a household pet. Working dogs for guarding a home or farm, herding livestock, hunting, and modern needs such as guide or search-and-rescue dogs are permitted. For dogs kept without such a need, the majority of scholars hold it disliked or impermissible, based on the hadith: “Whoever keeps a dog, except a dog for farming, herding or hunting, loses a qirat of his reward every day” (Sahih al-Bukhari 2322). The Maliki school considers a living dog pure and is more lenient about keeping one. Whatever your situation, every animal must be treated kindly. Touching a dog does not break wudu; if saliva reaches your clothes or skin, simply wash the area before praying. For your specific circumstances, consult a qualified local scholar.

**Related reading**

- [How to perform wudu (and what breaks it)](/en/questions/how-to-perform-wudu)
- [Story of the Companions of the Cave](/en/stories/companions-of-the-cave)

**Also read:** [How to Pray Salah Step by Step: Complete Guide for Beginners](/en/lessons/how-to-pray-salah-step-by-step)

## FAQ

### Is Keeping Cats or Dogs as Pets Permissible in Islam, and Does It Affect Prayer?

Showing mercy to animals is a deeply rewarded act in Islam: cats were explicitly praised in prophetic tradition as clean companions of the household, and the Qur’an honors the loyal dog of the Companions of the Cave in Surah Al-Kahf 18:22.

### Which Qur’anic verses provide direct guidance on this topic?

Key verified passages include Surah Al-Kahf (18:22) and Surah Al-An'am (6:75), which frame the issue through sincere intention, human capacity, and Allah’s encompassing mercy.

### What is the most practical first step to take today?

Treat all animals with compassion, and if you care for pets, simply keep a clean prayer mat and garment dedicated to your daily salah.

### Is having a dog haram in Islam?

Owning a dog for a need such as guarding, herding, hunting or assistance (e.g. a guide dog) is permitted. Keeping one indoors purely as a pet is disliked or prohibited in the majority view, based on the hadith that whoever keeps a dog except for farming, herding or hunting loses reward daily (Bukhari 2322). The Maliki school is more lenient.

### Does touching a dog break wudu?

No. Touching a dog does not break wudu. The majority consider its saliva impure: if a dog licks a vessel, it is washed seven times, once with earth (Muslim 279). Touching a dry dog leaves nothing to wash; the Maliki school regards a living dog as pure.


## Sources

- [Quran.com — Surah Al-Kahf (18:22)](https://quran.com/18/22)
- [Quran.com — Surah Al-An'am (6:75)](https://quran.com/6/75)
- [Quran.com — Surah Al-Isra (17:70)](https://quran.com/17/70)