The Kaaba and prayer toward it (kaʿba)

كَعْبة

The Kaaba in the lexicon is the square house; in the law it is the Sacred House, and the qibla is the direction toward which one prays. Facing the Kaaba is a condition of valid prayer. One who sees it must face its very mass; a person who cannot see it may rely on his judgement, as some jurists allow. The Hanafis and Shafi'is allow prayer inside it; the Malikis and Hanbalis forbid the obligatory prayer there and allow voluntary prayer. The Hanafis and Shafi'is allow the obligatory prayer on its roof, and the Hanbalis have a narration to that effect, while the Malikis and the better-known Hanbali view do not. Prayer on the adjoining roofs and on high ground nearby is valid by agreement. 1 2 3

Depth

At a glance

Era
The Prophetic Era
Region
Global / Diaspora
Review
Draft Completeness 1/5 · Help complete it

Sacred space and pilgrimageWorship and the pillars

Summary

In the lexicon ka'ba is the square house; in the terminology it is the Sacred House, and the qibla is the direction toward which one prays, the part of the Kaaba or what lies before it; the name came to mark the direction itself, and the qibla is wider than the Kaaba. The Sacred Mosque can mean the Kaaba alone, the Kaaba with what surrounds it, the whole city of Mecca, or the city with its sanctuary 1.

Facing the Kaaba in prayer

There is no dispute that facing the Kaaba is a condition of valid prayer, on the verse in Surat al-Baqara, verse 144. One who sees the Kaaba must face its very mass; reliance on judgement is not enough, and facing only its direction is not enough; for one who cannot see it the jurists differ 2.

Prayer inside the Kaaba

The Shafi'is and Hanafis allow prayer inside it, both obligatory and voluntary, on the report of Ibn Umar about the Prophet ﷺ praying two rak'as between the two pillars; the Shafi'is allow it if the worshipper faces its wall or open door. The Malikis and Hanbalis hold that the obligatory prayer is not allowed but the voluntary is, on the report of Ibn Abbas that the Prophet prayed two rak'as before the wall. Ibn Jarir, some Zahiris, Asbagh ibn al-Faraj, and a report from Ibn Abbas forbid both 2.

Prayer on the roof and beneath it

The Malikis and Hanbalis hold that the obligatory prayer on its roof is not valid, since one faces no part of it. The Hanafis and Shafi'is, and one Hanbali narration, hold it valid if one faces some part of it; the Shafi'is and the second Hanbali narration require standing at the end or middle of the roof with a marker of the Kaaba's stones two-thirds of a cubit high in front. The Hanafis dislike it as impolite and allow voluntary prayer there. Beneath it, Hanafi principles allow it, the Malikis forbid it, and the Hanbalis allow it 3.

Prayer on adjoining roofs

Prayer on the roofs next to it, and on high places such as Mount Abu Qubays, is valid by agreement 3.

People and things also explored

The earth made a place of prayer and purity· Al-Aqiq: the valley as a place of ihram and the carnelian stone in law (aqiq)· Hady (animal offered to the Sacred Precinct)· Rulings on the hajj· Hatma' (a sacrificial animal with its front teeth gone: its fitness)· Ihram (the state of consecration for hajj or umra)· Ihsar (being prevented from completing the rite)· The change of the qibla

Sources

  1. al-Mawsu'a al-Fiqhiyya al-Kuwaitiyya, Noor-Book copy (file named v3) , p.13278
  2. al-Mawsu'a al-Fiqhiyya al-Kuwaitiyya, Noor-Book copy (file named v3) , p.13279
  3. al-Mawsu'a al-Fiqhiyya al-Kuwaitiyya, Noor-Book copy (file named v3) , p.13280
Cite this page

islam.museum contributors. “The Kaaba and prayer toward it (kaʿba)”. islam.museum, https://islam.museum/en/concept/kaaba/. CC BY-SA 4.0. Last updated 2026-10-23.

Improve this page on GitHub · Report an error · JSON

Wing

Ideas

Beliefs, concepts, sciences and schools, explained in plain words.
Related

The earth made a place of prayer and purity

Sha'rawi holds that God made the whole earth a place of prayer and purity for the community of Muhammad, so that prayer is valid in every place. He treats the wrecking of mosques as a very great wrong that brings shame in this world and punishment in the next, and says that the discovery of hidden laws in creation calls for prostration in thanks.