Islamic Heritage

Masjid al-Qiblatayn and the Story of the Two Qiblas

For sixteen or seventeen months the Muslims of Madinah prayed towards Jerusalem. The story of the change of Qibla — and the mosque that remembers it.

The white minarets and domes of Masjid al-Qiblatayn in Madinah

In the early years in Madinah, the Muslims faced Bayt al-Maqdis in Jerusalem for prayer. The Prophet ﷺ longed for the Qibla to be the Kaaba — and the Quran records the answer.

The change of Qibla

قَدْ نَرَىٰ تَقَلُّبَ وَجْهِكَ فِي السَّمَاءِ ۖ فَلَنُوَلِّيَنَّكَ قِبْلَةً تَرْضَاهَا ۚ فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ ۚ

We have certainly seen the turning of your face towards the heaven, and We will surely turn you to a Qibla with which you will be pleased. So turn your face towards al-Masjid al-Haram.

Al-Baqarah 2:144

According to reports in Sahih al-Bukhari, after praying towards Jerusalem for sixteen or seventeen months, the Muslims were instructed to face the Kaaba. Reports describe a congregation that turned towards Makkah in the middle of their prayer once the news reached them.

The mosque

Masjid al-Qiblatayn, in the Bani Salamah area north-west of the city centre, is traditionally identified as the place where this occurred. For centuries it had two prayer niches; after its rebuilding in the 1980s, only the niche facing the Kaaba remains.

Why it matters

The change of Qibla gave the Muslim community its own focal point and affirmed the station of the Kaaba, built by Ibrahim and Isma’il. It also tied the community to Jerusalem’s legacy as its first Qibla — which is why Al-Aqsa retains a special place in Muslim hearts.

Ziyarat-e-Haramain Editorial Team

Guides and stories prepared by the team behind the Ziyarat-e-Haramain app. For rulings specific to your situation, please consult a qualified scholar.

Carry it offline

Keep this guide in your pocket.

Hajj, Umrah and Ziarat guidance with duas in Arabic, Urdu and English — in the Ziyarat-e-Haramain app, fully offline.

Get it on Google Play Download on the App Store
Umrah guide screen of the app

Keep reading

All articles