Qiblah
القبلةFind the direction of the Ka'bah from wherever you are
What is the Qiblah?
The qiblah is the direction Muslims face during salah — toward the Ka'bah in Makkah. It unites the entire ummah: at any moment of day or night, somewhere on earth a Muslim is praying, and they are all facing the same point.
For the first 16-17 months in Madinah, the Prophet ﷺ and the believers faced Jerusalem during prayer. Then Allah revealed:
فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ ۚ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا وُجُوهَكُمْ شَطْرَهُ
Fawalli wajhaka shatra al-masjidi al-haram, wa haythu ma kuntum fawallu wujuhakum shatrah
“Turn your face toward al-Masjid al-Haram. And wherever you are, turn your faces toward it.”
Quran 2:144
From that moment, every Muslim has faced Makkah in prayer.
Qiblah Direction From Your Location
Detecting your location…
Why the Ka'bah — and do Muslims worship it?
The Ka'bah is not an idol and Muslims do not worship it. It is a direction, not a deity — a single point the whole ummah turns toward so that worship is united and ordered. Worship itself is for Allah alone.
The Qur'an calls it the first house of worship ever set up for humanity:
“The first House [of worship] established for mankind was the one at Bakkah…”
Its foundations were raised by the Prophet Ibrahim and his son Isma'il — “…Abraham was raising the foundations of the House and Ishmael…” (Quran 2:127) — and the Prophet ﷺ named it the first mosque ever built on earth. When Abu Dharr asked “Which mosque was first built on the surface of the earth?” he answered that it was the Sacred Mosque (al-Masjid al-Haram), built forty years before al-Aqsa (Bukhari 60:40).
That the direction is obedience — not stone-veneration — is captured by Umar ibn al-Khattab, who kissed the Black Stone of the Ka'bah and said: “you are a stone and can neither benefit anyone nor harm anyone” — he did so only in following the Prophet ﷺ, not because the stone itself holds any power (Bukhari 25:83).
The day the qiblah changed
Al-Bara' ibn 'Azib remembered it vividly. The Prophet ﷺ prayed toward Jerusalem “…for sixteen or seventeen months, but he wished that he could pray facing the Ka'ba…” The command came during an 'Asr prayer, and word spread quickly (Bukhari 2:33).
The next morning the congregation at the Quba mosque was mid-prayer when a passer-by announced the revelation; they pivoted from Jerusalem toward the Ka'bah without breaking their prayer (Bukhari 65:15; Bukhari 65:17; Bukhari 65:18). The mosque in Madinah where an earlier turn is remembered is still called Masjid al-Qiblatayn — “the Mosque of the Two Qiblahs.”
Allah foretold the objection and answered it: “To Allah belong the east and west…” (Quran 2:142), and the change was “…except to distinguish those who would follow the Messenger from those who would turn back on their heels…” (Quran 2:143).
Some believers had died while still facing Jerusalem, and people worried about their prayers — so Allah reassured them that “…Allah would never let your [acts of] faith go to waste…” (Quran 2:143). A prayer offered in sincere obedience is never lost.
What if I'm not sure which way to face?
Do your best. If you genuinely tried to determine the qiblah and prayed in good faith, your prayer is valid even if you later discover you were facing the wrong direction. The Prophet ﷺ said:
“What is between the east and the west is Qiblah.”
This was the Prophet's ﷺ guidance for the people of Madinah (north of Makkah), meaning the entire southern arc was acceptable when precise direction was unknown. The principle generalizes: when in doubt, face the most likely direction with sincerity. If you can use a compass or compass app, do so. If not, ask a Muslim local or use the sun.
For travelers on planes, trains, or in cars where exact direction is impossible, face whatever direction you can and pray — Allah does not burden a soul beyond its capacity (Quran 2:286).
Mistakes and tolerances
Someone corrected me mid-prayer — do I start over?
No. Turn to the correct direction and continue — exactly what the congregation at Quba did when the qiblah changed while they were praying (Bukhari 65:15). Your prayer is not broken.
I found out afterward that I was facing the wrong way.
If you tried your best to work out the direction and prayed in good faith, your prayer stands — you are not required to repeat it. Allah reassured the early Muslims that faith offered sincerely is never wasted (Quran 2:143).
How exact do I have to be? My compass reads a degree or two off.
At a distance, facing the general direction of the Ka'bah is what is required — scholars call this facing jihat al-Ka'bah (its direction) rather than its exact point. The Prophet ﷺ told the people of Madinah, “What is between the east and the west is Qiblah” (Tirmidhi 2:194). A small margin of compass error will not affect the validity of your prayer.
Praying in a car, plane, train, or on a mount
The Prophet ﷺ drew a clear line between voluntary and obligatory prayer while travelling. For voluntary (nafl) prayer he prayed on his mount whichever way it happened to face — Ibn 'Umar reported he prayed “…facing its direction by signals, but not the compulsory prayer…” (Bukhari 14:11), and another companion saw him “…offering the prayer on his mount (Rahila) whatever direction it took…” (Bukhari 18:13). For the obligatory prayer he would dismount and face the qiblah.
In practice, for a fard prayer on a plane or train: face the qiblah at the opening takbir if you can (an in-flight qiblah screen or this compass on the ground before boarding helps), then pray in the direction of travel if the vehicle turns. Pray standing if you are able; sit if standing is genuinely not possible, and pray by gesture — Allah “does not burden any soul greater than it can bear” (Quran 2:286).
Whether an obligatory prayer prayed this way should be repeated once you can stand and face the qiblah is a point the schools of fiqh differ on. If you regularly pray while travelling, ask a trusted local scholar which position to follow.
Finding the qiblah without your phone
A dead battery or a device with no compass is never an obstacle to prayer. The Prophet ﷺ said the whole earth has been made a place of worship: “…whenever the time of prayer comes for any one of you he should pray whenever he is…” (Muslim 5:3), and “To Allah belong the east and the west; wherever you turn, there is the Face of Allah…” (Quran 2:115).
To estimate the direction without a device, scholars and travellers rely on natural signs:
- The sun rises roughly in the east and sets roughly in the west, giving you an east–west line to orient from.
- At solar noon the sun is at its highest and shadows are shortest, pointing along the north–south line.
- At night the Pole Star (Polaris) marks true north in the northern hemisphere.
- A nearby mosque's orientation, or the qiblah arrow marked on many hotel-room ceilings or drawers, gives the local direction directly.
Do your honest best with what you have — a sincere estimate is exactly what is asked of you.
The qiblah beyond salah
Facing the qiblah is loved in more than the prayer. It is recommended when making du'a and dhikr, and when slaughtering an animal. The deceased are laid in the grave facing the qiblah on their right side — see the burial guidance on the Death & Janazah page.
There is also an etiquette of not facing or turning your back to the qiblah when relieving oneself in open ground. The Prophet ﷺ said one should “neither face nor turn his back towards the Qibla; he should either face the east or the west” (Bukhari 4:10). Ibn 'Umar noted from seeing the Prophet ﷺ on a rooftop that within the shelter of walls this is eased (Bukhari 4:11); the scholars discuss the indoor case in detail.
Sources & References
- •Quran 2:142-145 — The change of qiblah from Jerusalem to the Ka'bah
- •Quran 2:144 — Turn your face toward al-Masjid al-Haram
- •Quran 2:127 — Ibrahim and Isma'il raising the foundations of the House
- •Quran 3:96 — The first House established for mankind, at Bakkah
- •Quran 2:115 — To Allah belong the east and the west
- •Bukhari 60:40 — Al-Masjid al-Haram, the first mosque built on earth
- •Bukhari 25:83 — Umar at the Black Stone: 'a stone that can neither benefit nor harm'
- •Bukhari 2:33 — Al-Bara': sixteen or seventeen months facing Jerusalem
- •Bukhari 65:15 — The Quba congregation turning toward the Ka'bah mid-prayer
- •Bukhari 14:11 — Voluntary prayer on his mount, but not the obligatory prayer
- •Bukhari 18:13 — Praying on his mount whatever direction it took
- •Muslim 5:3 — The earth made a mosque; pray wherever the time comes
- •Bukhari 4:10 — Not facing or backing the qiblah when relieving oneself
- •Tirmidhi 2:194 — What is between east and west is qiblah
- •Quran 2:286 — Allah does not burden a soul beyond its capacity