Before the Kaaba, there was Jerusalem — sixteen months of prayer facing a direction that would later change mid-prayer, at a mosque that still carries the name of that exact moment.
Long before "which direction is Qibla" meant checking an app, it meant facing Masjid al-Aqsa in Jerusalem. This was the direction of prayer throughout the Prophet's ﷺ time in Makkah, and it continued for roughly 16 to 17 months after the migration (Hijrah) to Madinah. For well over a year of the earliest Islamic prayers, Jerusalem — not Makkah — was the direction believers turned toward.
Interestingly, while still in Makkah, geography made this easier than it sounds: since Jerusalem lies north of Makkah, the Prophet ﷺ would position himself so that facing Jerusalem also meant having the Kaaba somewhere in his line of sight — facing one sacred direction without fully turning away from the other.
The shift to Makkah didn't happen quietly between prayers — tradition describes it happening in the middle of one. The Prophet ﷺ had reportedly been hoping for this change, looking to the sky in anticipation, when the revelation came. The congregation, already facing Jerusalem, turned together to face the Kaaba instead, partway through the prayer they were in.
The mosque in Madinah where this happened is still standing today, known as Masjid al-Qiblatain — "the Mosque of the Two Qiblas." Its layout preserves the memory of that exact moment, historically containing two mihrabs (prayer niches): one oriented toward Jerusalem, one toward Makkah. It remains a site visited by pilgrims in Madinah specifically because of this history.
The change is recorded in the Quran itself, in Surah Al-Baqarah: "So turn your face toward al-Masjid al-Haram. And wherever you are, turn your faces toward it." (2:144). Beyond the revelation itself, the shift to the Kaaba carried a specific significance — the Kaaba's construction is linked to Ibrahim (peace be upon him), connecting the new direction of prayer to that earlier prophetic legacy, and giving the Muslim community a direction of its own, distinct from the Qibla shared with the Jewish community in Madinah at the time.
Yes — the change in direction didn't diminish Jerusalem's standing. Masjid al-Aqsa remains the third holiest site in Islam, and its history as the first Qibla is still taught and respected precisely because of what it represents: a direction chosen by revelation, held faithfully for over a year, and then changed by the same authority that established it in the first place.
Every calculation used today — the exact bearing you get from a Qibla app, the degree figures in our city-by-city guide, the compass work covered in how to find your direction — all point toward that same location the Qibla changed to at Masjid al-Qiblatain. The specific number your phone calculates, whether it's 43.5° from Dallas or a different figure from wherever you are, is a modern, precise version of the same act performed by that congregation in Madinah: turning to face the Kaaba, on instruction, without hesitation.
Sixteen months facing one direction, a revelation, and a congregation that turned without hesitation — the exact bearing has been recalculated a thousand ways since, but the act itself hasn't changed at all.
SabrTime's Qibla compass uses your live location for an accurate bearing — free, no ads, no login.
Open SabrTime