History

The History of Qibla: From Jerusalem to Mecca

Explore the fascinating history of how the Qibla changed from Jerusalem to Mecca. Learn about the first Qibla, the divine command, and the historical mosque that witnessed the change.

January 6, 2026
7 min read

The First Direction of Prayer

When Islam began, Muslims didn't pray toward Mecca. For the first years of Islamic history, Muslims faced a different holy city—Jerusalem (known in Arabic as Bayt al-Maqdis or Al-Quds).

This fascinating historical change is one of the most significant events in Islamic worship, and understanding it enriches our appreciation of the Qibla.

Jerusalem: The First Qibla

Why Jerusalem?

Jerusalem held special significance in Islam from the beginning:

  1. City of Prophets - Home to prophets Ibrahim, Dawud, Sulaiman, and others
  2. Al-Aqsa Mosque - One of the three holiest mosques in Islam
  3. Connection to Judaism and Christianity - Affirmed the prophetic lineage
  4. Divine Command - Muslims prayed toward it as commanded

Duration

Muslims faced Jerusalem for approximately:

  • 13 years in Mecca - Before the Hijra
  • 16-17 months in Medina - After the migration

Total: About 14+ years of praying toward Jerusalem.

The Prophet's Wish

Although following the command to face Jerusalem, Prophet Muhammad (PBUH) had a deep longing to face the Kaaba. The Quran describes this:

"We have certainly seen the turning of your face toward the heaven, and We will surely turn you to a qibla with which you will be pleased."

— Quran 2:144

The Prophet would often look toward the sky, hoping for a revelation that would direct him toward the Kaaba—the house built by his ancestor, Prophet Ibrahim.

The Historic Change

The Revelation

In the month of Sha'ban, in the second year after Hijra (approximately 624 CE), the revelation came:

"So turn your face toward al-Masjid al-Haram. And wherever you [believers] are, turn your faces toward it [in prayer]."

— Quran 2:144

The Moment It Happened

The change occurred while Prophet Muhammad was leading the Dhuhr (noon) prayer. According to historical accounts:

  1. The Prophet was leading prayer facing Jerusalem
  2. The revelation came mid-prayer
  3. He turned 180 degrees to face the Kaaba
  4. The congregation followed him
  5. The prayer was completed facing Mecca

The Mosque of Two Qiblas

The mosque where this occurred is now known as Masjid al-Qiblatain (مسجد القبلتين), meaning "Mosque of the Two Qiblas." It still stands in Medina today and is one of the oldest mosques in Islamic history.

Originally, the mosque had two mihrabs (prayer niches)—one pointing to Jerusalem and one to Mecca. Today, only the Mecca-facing mihrab remains, but the name preserves this historic event.

Why the Change?

Theological Significance

  1. Distinct Muslim Identity - Separated Muslim practice from Jewish tradition
  2. Return to Ibrahim's Legacy - The Kaaba was built by Prophet Ibrahim
  3. Test of Faith - Those who followed showed true belief
  4. Fulfillment of Longing - Answered the Prophet's heartfelt wish

The Quranic Explanation

"And We did not make the qibla which you used to face except that We might make evident who would follow the Messenger from who would turn back on his heels."

— Quran 2:143

The change served as a test—true believers followed the Prophet's new direction without question.

Reactions to the Change

Among Muslims

Most Muslims immediately accepted the change, seeing it as divine command. It strengthened their unity and distinct identity.

Among Other Groups

Some questioned the change:

  • "Why did they turn from their qibla?"
  • Some used it to cast doubt on Islam

The Quran addressed these concerns:

"The foolish among the people will say, 'What has turned them away from their qibla, which they used to face?' Say, 'To Allah belongs the east and the west. He guides whom He wills to a straight path.'"

— Quran 2:142

The Kaaba's Significance

Historical Background

The Kaaba predates Islam:

  • Built by Prophet Ibrahim and his son Ismail
  • Became a center of pilgrimage for Arabs
  • Over time, idols were placed around it
  • Prophet Muhammad cleansed it after conquering Mecca

Why the Kaaba?

  1. Oldest House of Worship - First house built for worshiping God
  2. Ibrahimic Legacy - Connects Muslims to Abraham
  3. Universal Center - A single point unifying all Muslims
  4. Not an Idol - Muslims worship Allah, not the building

Lessons from the Change

1. Obedience to Divine Command

Muslims showed readiness to follow God's command, even when it meant changing established practice.

2. Faith Over Tradition

The change demonstrated that following revelation takes precedence over tradition.

3. Unity in Diversity

Whether facing Jerusalem or Mecca, the principle of facing a unified direction remained.

4. Testing Faith

True believers are tested; the Qibla change revealed sincere faith.

The Qibla Today

Today, approximately 1.8 billion Muslims face the Kaaba five times daily:

  • Every mosque in the world is aligned toward Mecca
  • Prayer mats have the Qibla direction woven into them
  • Hotels worldwide mark the Qibla direction for guests
  • Technology makes finding Qibla easier than ever

Visiting Masjid al-Qiblatain

For those visiting Medina:

  • Location: Northwest Medina, about 4 km from Masjid al-Nabawi
  • Features: Historic mosque with modern expansion
  • Significance: Site of the Qibla change
  • Visiting hours: Open for visitors outside prayer times

Conclusion

The change of Qibla from Jerusalem to Mecca was a pivotal moment in Islamic history. It established the distinct identity of Muslims, connected them to the legacy of Prophet Ibrahim, and created a powerful symbol of unity that persists today.

When you face the Qibla to pray, you're participating in a practice with 1,400 years of history—a direction established by divine command and maintained by billions of believers throughout the centuries.

Find Your Qibla Direction

Use our free GPS-based tool to find the accurate Qibla direction from your current location.

Open Qibla Finder

Related Topics

qibla historyfirst qiblajerusalem qiblachange of qiblaqibla mecca
Share this article: