Masjid al-Qiblatayn: The Complete History, Story and Ziyarah Guide to the Mosque of the Two Qiblas in Madinah

On a low rise of dark basalt in the Banu Salamah quarter of northwest Madinah, two white domes and a pair of slender forty-metre minarets stand above a modern boulevard named for Khalid ibn al-Walid. Visitors arrive by the coach-load, cameras raised before the engine has stopped, because they have been told a story: that inside this mosque, mid-prayer, a congregation of the earliest Muslims turned as one body from Jerusalem to Makkah, and that the verse commanding them to do so was revealed to the Prophet Muhammad ﷺ at that very moment, in that very place. It is one of the most beloved stories in the Islamic world’s geography of memory. It is also, this guide must say plainly and at the outset, a story that the most rigorously authenticated hadith collections do not actually tell.

This is not a small caveat tucked into a footnote. It is the central fact a honest account of this mosque must confront, and it is the reason this guide exists in the form it does — long, careful, and unwilling to either repeat the popular version uncritically or dismiss it with contempt. The sahih hadiths of Sahih al-Bukhari and Sahih Muslim do record, in vivid and moving detail, a congregation of Muslims who learned mid-prayer that the direction of prayer had changed and who turned, without hesitation, toward the Ka’bah. But when those hadiths name a location at all, they name Masjid Quba’, not this mosque — and a separate, equally authentic narration places a second such turning at “the mosque of Banu Salamah,” during the dawn prayer, with one rak’ah already completed. The Zuhr-prayer story set in the house of a woman named Umm Bishr — the story that gives today’s mosque its name and its popular founding legend — traces not to a hadith with a checkable chain of narrators at all, but to an isnad-less historical report in Ibn Sa’d’s al-Tabaqat al-Kubra, a report so uncertain that its own transmitter hedges it with the words “it was said… it was said.” Even Ibn Hajar al-‘Asqalani, the great commentator on Sahih al-Bukhari, states outright that “the reports differ concerning the prayer during which the qiblah was changed, and the mosque in which that happened.” This guide will walk through all of that evidence slowly, honestly, and without rushing to a comfortable conclusion, because the reader deserves to know exactly where the ground is firm and where it is not.

None of this diminishes the true event the mosque commemorates. The changing of the qiblah — recorded across multiple sound chains of narration and enshrined in six verses of Surah al-Baqarah, 2:142 through 2:150 — is one of the most consequential moments in early Islamic history: a moment when a young, vulnerable community in Madinah was asked to do something that looked, to outside eyes, like confusion or caprice, and did it instantly, mid-motion, without argument. That obedience is the real subject of this guide. Where the story happened with certainty, this guide says so. Where it does not, this guide says that too, and explains why the uncertainty exists, who has weighed in on it, and what the honest options are for a modern reader trying to understand a fourteen-century-old set of overlapping, imperfect memories.

What follows is a full documentary account: the geography and pre-Islamic history of the site; the story of the qiblah change itself, narrated with the emotional weight it deserves; every verified hadith connected to it, graded plainly; the six verses of the Qur’an that record the event and command its outcome, read through the classical tafsir tradition; the fiqh that the episode generated, still governing how Muslims determine prayer direction today; the mosque’s architectural history through fourteen centuries, including the significant 1987 rebuild that quietly removed one of the two mihrabs that gave the mosque its name; the honest state of the archaeological record, which is to say, its absence; the companions and scholars connected to the site; and a full practical guide for anyone planning a visit. This is written for the pilgrim who wants to stand inside that mosque and know, with precision, what can be said with confidence and what must be held more lightly — and to leave with both intact: the facts, and the reverence.

Historical Background

Where the Mosque Stands

Masjid al-Qiblatayn stands in the Banu Salamah district of northwest Madinah, on what was originally an elevated hilltop within the Harrat al-Wabrah, a field of dark volcanic basalt rock that spreads across much of Madinah’s western approaches. The site overlooks Wadi al-Aqeeq, the broad seasonal watercourse that runs through the city’s outskirts, and lies south of the historic Well of Rumah, one of the oldest documented water sources in the oasis. Its coordinates are fixed today at 24°29′02.71″N, 39°34′44.07″E.

Sources disagree, sometimes considerably, on exactly how far the mosque sits from Masjid an-Nabawi, the Prophet’s Mosque, and this guide will not manufacture a false precision the sources themselves do not offer. The official Saudi tourism authority, VisitSaudi, gives a distance of approximately 3.8 kilometres. Saudipedia, the Saudi state encyclopedia, gives approximately 4 kilometres. Wikipedia’s article states approximately 5 kilometres, or 3.1 miles. Separately, ethnographic sources describing the historic settlement pattern of the Banu Salamah tribe place their quarter as far as 7 kilometres northwest of the Prophet’s Mosque. The most likely explanation is that these figures measure different things — straight-line distance versus the modern road route, or the mosque itself versus the wider historic tribal quarter — but no single authoritative figure can be stated with certainty, and a reader planning a visit should expect a taxi or walking distance somewhere in that broad range rather than treating any one number as exact.

The site sits close to where Wadi al-Aqeeq meets the smaller Wadi Bathan, part of the valley system that drains the volcanic uplands west and northwest of Madinah toward the lower oasis. This is a landscape of black rock and pale sand, punctuated by date palms wherever water gathers, and it would have looked, in the first years of the Hijrah, very much like empty ground on the edge of settlement — a place of modest houses and working farmland belonging to one clan among many, not yet a destination.

The Land Before Islam: No Sacred Space, and No Pretending Otherwise

It would be easy, and dishonest, to reach backward into pre-Islamic Arabia and find some ancient holiness already resident in this ground, waiting for Islam to arrive and complete it. The evidence does not support that, and the most serious modern academic treatment of the question says so in direct terms. Harry Munt’s The Holy City of Medina: Sacred Space in Early Islamic Arabia (Cambridge University Press, 2014), the standard scholarly monograph on Madinah’s religious topography, concludes that “nothing permits us to attest to the existence of sacred spaces in the oasis before the Hijra.” In a recorded academic lecture, Munt puts it even more starkly: “there is, to my knowledge, no evidence to suggest that Medina… in the pre-Islamic period… was considered a sacred space or is even particularly associated with ideas of holy places.” He notes that the closest known sacred precinct, or haram, associated with the Aws and Khazraj tribes before Islam lay near the Red Sea coast, not in Yathrib itself — meaning that whatever reverence those tribes held for consecrated ground, they did not attach it to their own oasis home.

This matters for how this guide treats Masjid al-Qiblatayn specifically. There is no study — none identified in the research behind this guide — that locates a pre-Islamic structure, shrine, well, or ritual site on the precise footprint of today’s mosque. Munt does note scattered, late reports of small idol shrines somewhere in the general area, and Yathrib itself is textually attested as an ancient settlement, appearing even in a sixth-century-BCE inscription of Nabonidus, the last king of the Neo-Babylonian empire — but that is evidence the oasis was old and inhabited, not that it was holy. The distinction matters. Madinah’s sanctity, and this small mosque’s sanctity within it, is a wholly Islamic development, not an inheritance from an older religion grafted onto new ground. That is worth stating plainly, in the same spirit that this guide will later state plainly where the popular qiblah-change story runs ahead of its evidence: sanctity in Islam is not manufactured by antiquity, and it does not need to be.

The Banu Salamah: Who Held This Ground

The land later occupied by the mosque belonged to the Banu Salamah, a clan of the Khazraj tribe. Arab genealogical tradition traces their descent to the Qahtani, or South Arabian, lineage through Kahlan, and places them among the tribes that migrated north into the Hijaz and settled the Madinah oasis generations before Islam. By the time of the Hijrah, the Banu Salamah had made their home in the northwest quarter of the oasis, in the area known as Harrat al-Wabrah or Harrah Gharbiyyah — the same volcanic tract where the mosque now stands — where their position served, in effect, to guard Madinah’s northwestern approaches.

They were, in other words, ordinary people occupying an ordinary defensive position on the edge of a farming settlement, with no special religious distinction attached to their land before Islam reached them. What elevated their quarter into one of the most visited historical sites in Madinah was not anything intrinsic to the ground. It was a single event — or, as the honest reading of the sources shows, possibly more than one closely related event — that took place there or very near there in the second year after the Hijrah, when the direction every Muslim on earth faced in prayer changed forever.

The Oasis Transformed

By the time the qiblah changed, Madinah had already been transformed by the Hijrah from a fractured federation of rival clans into something genuinely new: a single political and religious community bound by the Constitution of Madinah, anchored by the Prophet’s Mosque, and organized around the twin identities of Muhajirun, the emigrants from Makkah, and Ansar, the Madinan helpers who had taken them in. The Banu Salamah were Ansar — Khazraji Ansar specifically — and their quarter, like every quarter of the oasis, now contained its own local mosque, a modest structure of palm trunks and palm-frond thatching where the clan gathered for the five daily prayers under its own appointed leader. It was one of many such neighbourhood mosques scattered across the oasis in those first years, indistinguishable in construction from a dozen others, and utterly unremarkable until the day it was not.

The Story Behind the Place

Why the Duration Itself Is Disputed

Even the length of time the community spent praying toward Jerusalem is not reported with a single, unanimous figure across the sources, and this guide will not pretend otherwise for the sake of narrative tidiness. Al-Tabari’s Tafsir collects separate reports giving the duration as nine, ten, thirteen, sixteen, seventeen, or eighteen months, a genuine spread reflecting the natural variation that occurs whenever multiple independent early narrators estimate a length of time from memory rather than from a written record. The sixteen-to-seventeen-month figure used throughout this guide reflects the reports carried in the strongest sahih chains, specifically the al-Bara’ ibn ‘Azib narrations preserved in Sahih al-Bukhari and Sahih Muslim, but a careful reader of the wider tafsir tradition should know that this figure represents the best-supported estimate rather than a number every early source agrees on without exception.

Sixteen Months Facing Jerusalem

For the first sixteen or seventeen months after the Prophet ﷺ arrived in Madinah, the Muslims prayed facing Bait al-Maqdis — Jerusalem. This is recorded plainly in Sahih al-Bukhari 40, on the authority of al-Bara’ ibn ‘Azib, one of the Ansar who lived through the change himself: the Prophet ﷺ prayed toward Jerusalem for sixteen or seventeen months after his arrival, though — as al-Bara’ also records — he wished, in his heart, to face the Ka’bah instead. Classical exegetes offer different explanations for why Jerusalem was chosen at all: some frame it as the Prophet’s own choice, made in the hope of drawing the Jewish tribes of Madinah closer to his message by sharing their sacred direction; others frame it as a direct divine command given without an explanation attached. Both readings appear in the earliest tafsir literature, and neither can be proven at the expense of the other from the material available.

What is not in dispute is the emotional undertone the hadith itself preserves: a Prophet who prayed toward Jerusalem out of obedience, while looking, again and again, toward the sky — waiting, the classical commentators say, for the command that would let him face the Ka’bah, the qiblah of his forefather Ibrahim, instead. Ibn Kathir’s Tafsir records a report attributed to Ibn ‘Abbas describing exactly this: that the Prophet ﷺ “used to supplicate and look up to the sky,” anticipating a change he had not yet been given permission to make.

The wait mattered because of who was watching. Bukhari 40 states that “the Jews and the people of the Scriptures used to be pleased” that the Muslims prayed toward their own sacred direction, and that this pleasure curdled into resentment the moment the direction changed. Ibn Kathir’s tafsir adds a further layer: citing a hadith transmitted from ‘Aisha through Ahmad ibn Hanbal, he records that the Jews of Madinah envied the Muslims specifically over three things that had been given to this new community — the qiblah, the Friday congregational prayer, and the saying of “Amin” after the recitation of al-Fatihah. The qiblah change, on this reading, was not an isolated ritual adjustment. It was one strand in a wider tension over which community held the more authentic claim to prophetic tradition, played out in the small daily choreography of which way a person turns to pray.

The Moment of Change

The revelation came, according to the most commonly cited figure, after sixteen or seventeen months — though al-Tabari’s Tafsir preserves a genuine spread of transmitted figures, with some reports giving nine, ten, thirteen, or eighteen months instead. This variation is worth sitting with rather than smoothing away: it tells a reader something true about how the earliest Muslim community remembered and transmitted its own history — not with the uniform precision of a modern archive, but through multiple witnesses recalling the same watershed moment from slightly different vantage points, none of them lying, all of them human.

What happened next is described with unusual immediacy in the hadith literature. Al-Bara’ ibn ‘Azib recounts, in Sahih al-Bukhari 40, that the first prayer the Prophet ﷺ offered facing the Ka’bah was the ‘Asr prayer, led in congregation. One of the men who had prayed that ‘Asr with him then went on his way and passed by a separate group of people — the hadith does not name them or their mosque — who were themselves in the middle of prayer. He told them what he had just witnessed: that the qiblah had changed, that the Prophet ﷺ had prayed facing the Ka’bah. And this second congregation, mid-prayer, already bowing in ruku’, turned their bodies without breaking the prayer, without waiting for its completion, toward the new direction.

Read slowly, this is a story about trust operating at the speed of instinct. These were people who had spent sixteen months building the physical habit of facing one direction in the most repeated act of their religious lives, five times a day, and who were asked — by a report relayed second-hand, from a man passing by, not even from the Prophet ﷺ in person — to abandon that habit immediately, mid-posture, in front of each other. They did not finish the rak’ah facing the old direction and correct themselves at the next one. They turned where they stood. Sahih al-Bukhari 4486 preserves the same event with a small but telling variation of language, describing the Prophet’s own prayer in “his Mosque” and the second congregation’s prayer in “another Mosque” — again without identifying either the second mosque’s name or its location.

Two Distinct Memories, Not One: Quba’ and Banu Salamah

Here the story this guide must tell honestly becomes more complicated than the postcard version, and it is worth explaining exactly why, because the complication is not academic hair-splitting — it goes to the heart of what can and cannot be claimed about the mosque a visitor stands inside today.

The sahih hadith corpus does not describe one single mid-prayer turning. It describes, on the most careful reading, at least two separate incidents, both occurring during the dawn prayer, at two different mosques, involving two different congregations.

The first is recorded with complete clarity and named location in the narration of Ibn ‘Umar — ‘Abdullah ibn ‘Umar ibn al-Khattab, son of the second caliph. Sahih al-Bukhari 403 states plainly: while the people were praying the dawn prayer at Masjid Quba’, someone arrived and told them that the Qur’an had been revealed to the Prophet ﷺ commanding him to face the Ka’bah. They had been facing Sham — the direction of Syria and, by extension, Jerusalem — and they turned their faces to the Ka’bah, mid-prayer, on the spot. This account is repeated, with the same core details and the same explicit naming of Quba’, in Sahih al-Bukhari 4488 and again in Sahih al-Bukhari 7251, and it appears a fourth time in Sahih Muslim 526. Of every narration connected to the qiblah change, this is the one that names its mosque without any ambiguity at all, and it is agreed upon by both Bukhari and Muslim — in the language of hadith science, muttafaq ‘alayh, among the strongest possible designations a report can carry.

The second incident is recorded by Anas ibn Malik, the Prophet’s young attendant, in Sahih Muslim 527. Anas narrates that the Messenger of Allah ﷺ used to pray toward Bait al-Maqdis, and that when the verse commanding the change was revealed, “a man from Banu Salamah” was on his way and came upon a congregation already in ruku’, engaged in the dawn prayer, having already completed one rak’ah. He called out, in a loud voice, that the qiblah had changed — and the congregation turned toward the new direction in that very state, mid-posture, exactly as the group in al-Bara’s account had done. This is the only sahih hadith that names Banu Salamah explicitly in connection with the qiblah change, and it is worth stressing, because it is so often mis-cited in popular literature, that this narration is Sahih Muslim 527 — not 525, and not 526, both of which record other, related but distinct material. It specifies the dawn prayer, with one rak’ah already prayed. It does not specify Zuhr. It does not mention a house, a meal, or a woman named Umm Bishr.

A third narration, from al-Bara’ ibn ‘Azib himself — the source of Bukhari 40 discussed above, and also of Sahih Muslim 525, which records the qiblah change in more general terms without naming a second mosque — never names the location of the “other mosque” where the mid-ruku’ turn occurred. Al-Bara’ belonged to the Banu Haritha clan, and some scholars have accordingly associated his unnamed “other mosque” with a mosque of Banu Haritha, distinct from both Quba’ and the mosque of Banu Salamah — though this association rests on inference from al-Bara’s own tribal affiliation rather than anything stated in the hadith text itself.

It is necessary, at this point, to note something else clearly, because it is a genuinely common error in circulation: Sahih al-Bukhari 41 is not related to the qiblah change at all. It is a narration from Abu Sa’id al-Khudri concerning the forgiveness of a person’s past sins upon their sincere embrace of Islam — an entirely separate hadith, on an entirely separate subject. Some popular and secondary literature has, in error, cited “Bukhari 41” alongside “Bukhari 40” as though both discuss the qiblah change together. They do not, and this guide will not repeat that error.

The Story Behind the Name: Umm Bishr’s House

If the sahih hadiths point to Quba’ and to the mosque of Banu Salamah during the dawn prayer, where does the popular story — the one that gives today’s mosque its name, its Zuhr-prayer setting, and its house-visit narrative — actually come from? The honest answer is that it comes from a different genre of source entirely: not a hadith with a traceable chain of narrators, but a historical report, transmitted without any chain at all, preserved in Ibn Sa’d’s al-Tabaqat al-Kubra by way of the historian al-Waqidi, and later repeated by Ibn Hajar al-‘Asqalani in Fath al-Bari and by Ibn Kathir in his Tafsir.

The report itself says that the Prophet ﷺ visited a woman named Umm Bishr, the wife of al-Bara’ ibn Ma’rur, in the quarter of Banu Salamah, and that she prepared food for him. The time for the Zuhr prayer arrived while he was there, and the Messenger of Allah ﷺ led his companions in two rak’ahs of that prayer facing Jerusalem — at which point, mid-prayer, he was commanded to turn and face the Ka’bah instead. It is this event, according to the report, that gave the site its name: Masjid al-Qiblatayn, the Mosque of the Two Qiblas, because within a single prayer it had faced two different directions.

Told on its own, without qualification, this is a beautiful and intimate scene: a shared meal, an ordinary household interrupted by revelation, an entire congregation reorienting itself in an instant inside someone’s private courtyard or the small mosque attached to it. It is easy to see why it became the story people wanted to tell, and it is retold here in full, because a beloved story earns the right to be told even when its evidential footing is weaker than a reader might assume. But it must be told honestly, and the honesty requires a direct statement of where the report actually stands.

A note on authenticity: this account of the Prophet’s visit to Umm Bishr’s house, the meal, and the Zuhr prayer that changed direction mid-rak’ah, is transmitted by Ibn Sa’d in al-Tabaqat al-Kubra without any isnad — no chain of narrators at all connects the report back to an eyewitness. Ibn Sa’d’s own source, al-Waqidi, introduces it with the hedging language “it was said… it was said,” and Ibn Sa’d records al-Waqidi’s own assessment that this version is merely “more sound in our view” among competing accounts — not a claim of certainty. No classical hadith critic graded this report sahih, hasan, or even da’if in the formal sense, because it was never transmitted with a chain that could be graded at all; it belongs to the maghazi and sirah genre of historical reporting, not to hadith science. Ibn Hajar al-‘Asqalani, who preserves the report in Fath al-Bari, states in the same breath that “the reports differ concerning the prayer during which the qiblah was changed, and the mosque in which that happened” — a classical scholar’s own acknowledgment that the matter is not settled. This guide tells the story because it is the story attached to the mosque’s name and its place in popular memory, and because Ibn Kathir’s Tafsir repeats it as one tradition among several. It does not present the story as an established historical fact on the level of a sahih hadith, because it is not one.

A further detail sometimes added to the story, drawn from a report of Nuwaylah bint Muslim preserved by Ibn ‘Abd al-Barr and quoted in Ibn Kathir’s Tafsir, describes the men and women of the congregation physically swapping positions in the prayer rows once the direction reversed by a hundred and eighty degrees — since the row that had stood in front now needed to stand behind, and the row behind now needed to stand in front. It is a vivid and memorable image, often repeated in modern retellings, including in devotional media produced by contemporary Islamic institutions. It traces to the same non-isnad historical genre as the Umm Bishr story itself, and should be received in the same spirit: as part of the tradition’s memory, not as a graded hadith.

What a Classical Hadith Master Already Knew

It would be a mistake to present the tension between these accounts as a modern, skeptical discovery, the product of a twenty-first-century research pass sunnah.com made possible. It is not. Ibn Hajar al-‘Asqalani, writing centuries ago as the foremost commentator on Sahih al-Bukhari, stated the problem himself, in his own words, preserved in Fath al-Bari: “This incident happened in more than one of the mosques of Madinah at that time, yet despite that the mosques were not called by this name. The Sahabah… turned around to face towards the Ka’bah whilst they were praying in Masjid Quba’, as is proven in the hadith of Ibn ‘Umar… They also turned around whilst they were praying in the masjid of Banu Harithah, as was mentioned in the hadith of al-Bara’ ibn ‘Azib… What was mentioned by the biographers about Masjid al-Qiblatayn and the reason for its name has to do with the masjid of Banu Salamah.” And then, in the same passage: “The reports differ concerning the prayer during which the qiblah was changed, and the mosque in which that happened.”

This is, in effect, a classical scholar doing exactly what this guide is attempting to do: naming the multiple traditions, refusing to collapse them into one, and being honest that a discrepancy exists rather than papering over it for the sake of a tidier narrative. Al-Tabari’s Tafsir offers independent confirmation of the same pattern. In transmitting a report from Anas describing the Prophet ﷺ praying Zuhr in Madinah — not at Quba’ — for nine or ten months before the change, al-Tabari’s editors add an explicit footnote: “The report from Anas is also in Sahih Muslim, but there it concerns the morning prayer in the mosque of Quba and is a different story from the one here.” That is a direct acknowledgment, from within the earliest layer of the tafsir tradition itself, that multiple, non-identical incidents were already circulating and being retold as though they were the same event — a conflation this guide is not the first to notice, only one of the more recent to say so in plain language.

Reading This Guide as a Whole: Why the Uncertainty Matters More Than the Convenience of a Single Story

A reader arriving at this point deserves a clear statement of why this guide has spent so much space on a question that a simpler article would have settled in a sentence. The temptation, in writing about any beloved historical site connected to the Seerah, is to reach for the version of the story that is most emotionally satisfying and move on — a specific house, a specific meal, a specific moment, told with enough narrative confidence that a reader never thinks to ask where the account actually comes from. This guide has resisted that temptation deliberately, because the alternative — presenting an isnad-less historical report with the same confidence due to a hadith graded sahih by Bukhari and Muslim — would misrepresent the very tradition this guide is trying to honor. Islamic scholarship’s own greatest strength, visible throughout the hadith sciences from the earliest centuries onward, is its insistence on tracing every claim back to its source and grading that source honestly. A guide to Madinah historical places that abandoned that standard for the sake of a smoother read would be doing a disservice to the seriousness with which the classical scholars themselves treated exactly this kind of question.

The Verdict of Contemporary Scholarship on Visiting the Site

Given all of this, what should a Muslim visiting Madinah today make of Masjid al-Qiblatayn? The clearest contemporary answer comes from the fatwa institution Islam Question & Answer (IslamQA), operating under the supervision of Sheikh Muhammad Salih al-Munajjid, in a published fatwa that engages directly with the Ibn Sa’d report and its weakness. Having laid out the same evidentiary problem described above — an isnad-less report, hedged by its own transmitter — the fatwa reaches a conclusion that a reader planning a ziyarah itinerary needs to hear in its own words: “It is not recommended for the visitor to Madinah to go and visit any of these places in Madinah and its environs, whether the hadith about the Prophet praying there is sound or not.”

This is a significant and, to many readers, unexpected position, and it deserves to be reported for exactly what it is: a scholarly opinion, held by a specific, named contemporary institution, on the basis of a specific evidentiary argument — not a universal consensus, and not a claim that visiting the mosque is forbidden. Other scholars and other Muslims hold, and have long held, that visiting sites connected to the seerah — even where the precise historical attribution is contested — carries value as a way of connecting physically and emotionally to the earliest history of the faith, provided the visitor does not attach to the site any belief in special reward for prayer there, a belief no sahih hadith supports for this particular mosque. This guide presents both positions because the brief under which it is written requires that scholarly disagreement be reported fairly, without editorializing about who is correct. What can be said without controversy is this: whatever is decided about visiting, the historical question of exactly where 2:144 was revealed, and during which prayer, remains genuinely unsettled in the primary sources — and it has remained unsettled since at least the time of Ibn Hajar, many centuries ago.

The Prophet ﷺ and This Place

A Site Defined by One Event, Not Many

Unlike Masjid Quba’, which the Prophet ﷺ is authentically reported to have visited repeatedly, riding or walking there most Saturdays throughout his time in Madinah, or Masjid an-Nabawi, the site of his home, his pulpit, and his daily life for a decade, Masjid al-Qiblatayn’s connection to the Prophet ﷺ rests on a single episode, and — as the preceding section has laid out at length — even that single episode carries genuine uncertainty about whether it occurred on this specific ground at all. This guide will not manufacture a richer prophetic biography for the site than the sources support. There is no authenticated report of the Prophet ﷺ returning to this mosque afterward, delivering a sermon there, or attaching any particular virtue to it by name. What there is, is the qiblah change itself — and whether it happened here, at Quba’, or in some third location now lost to memory, the change itself is beyond dispute, and its meaning for the Prophet ﷺ personally is recorded with real emotional texture in the hadith literature.

The Prophet’s Longing, Recorded in His Own Words

The clearest window into what this moment meant to the Prophet ﷺ personally comes not from any account of the mosque of Banu Salamah but from the plain text of Sahih al-Bukhari and the Qur’an itself. Ibn Kathir’s Tafsir, citing the report attributed to Ibn ‘Abbas, describes a Prophet ﷺ who prayed toward Jerusalem out of obedience for sixteen or more months while privately hoping for permission to face the Ka’bah — the qiblah of Ibrahim, the direction his own Makkan community, however hostile to him, still associated with the ancient monotheism he had come to restore. Verse 2:144, discussed fully below, opens by addressing this longing directly: “We have certainly seen the turning of your face, [O Muhammad], toward the heaven” — a divine acknowledgment, almost tender in its phrasing, that the Prophet’s private hope had been noticed before it was ever voiced as a request.

This is worth dwelling on, because it reframes the entire episode. The qiblah change was not an arbitrary administrative adjustment imposed on a passive Prophet ﷺ. It was a response to a longing the Qur’an itself describes as visible — turning one’s face toward the sky is a physical, watchable gesture, not a private thought — and it was granted at a moment of the Prophet’s ﷺ own choosing by God, sixteen-odd months into an act of patient obedience that could easily have stretched on indefinitely without complaint.

The Instant Nature of the Response

What every version of the mid-prayer turning story agrees on, regardless of which mosque or which prayer is in question, is the instantaneousness of the community’s response. Nobody in any of the sahih narrations pauses the prayer to deliberate. Nobody finishes the current rak’ah facing the old direction and corrects only for the next one. In Bukhari 40, in Bukhari 403, in Bukhari 4488, in Muslim 526, and in Muslim 527, the pattern repeats exactly: a message arrives, often relayed second- or third-hand by an ordinary passerby rather than delivered directly by the Prophet ﷺ himself, and the congregation turns immediately, mid-posture, without institutional confirmation, without a second witness required, without hesitation. This is a detail this guide considers worth returning to more than once, because it is the emotional and theological center of the whole episode: it demonstrates a community whose default posture toward revelation was immediate compliance, even when compliance meant physically reorienting their bodies in front of one another mid-worship, an act that in a less trusting community might have produced confusion, argument, or a demand for the Prophet ﷺ to confirm the news himself before anyone moved.

Al-Bara’ ibn ‘Azib: An Eyewitness’s Testimony

Much of what can be said with confidence about the Prophet ﷺ and the qiblah change rests on the testimony of a single companion, al-Bara’ ibn ‘Azib, whose account forms the backbone of Sahih al-Bukhari’s coverage of the episode across several hadith numbers — 40, 4486, and 4492 — as well as Sahih Muslim 525. Al-Bara’ was young at the time, a member of the Ansar from the Banu Haritha clan, and his repeated retelling of the same core event, with small variations of emphasis across different narrations collected by different students of hadith, is itself a case study in how a single reliable witness’s testimony was carefully preserved, cross-checked, and transmitted across the compilers’ lifetimes. He is the source for the detail that the Prophet’s own first prayer facing the Ka’bah was ‘Asr; he is the source for the detail that “the Jews and the people of the Scripture” disliked the change; and he is the source, via Bukhari 40, for the direct link between the qiblah change and the revelation of verse 2:143, addressing the believers who had died while still praying toward Jerusalem.

Two Companions Who Were Not There

Honesty about who witnessed this moment requires equal honesty about who did not. Al-Bara’ ibn Ma’rur, the chieftain — or naqib, tribal representative — of Banu Salamah and the husband of Umm Bishr, is a figure whose name is inseparably bound up with the popular story of this mosque, since it is at his wife’s house that the Zuhr-prayer version of events is said to have taken place. He was, by every account, an early and passionate believer: sirah literature reports, outside the framework of sahih hadith, that he personally began praying toward the Ka’bah out of his own conviction even before the official change was revealed, and he was the very first of the Ansar to give the pledge of allegiance to the Prophet ﷺ, at both of the pledges of ‘Aqabah that preceded the Hijrah. But al-Bara’ ibn Ma’rur died shortly before the Hijrah itself, and could not, therefore, have been present in his own wife’s house for an event that occurred after the Prophet ﷺ had already been living in Madinah for well over a year. If the Umm Bishr story is told at all, it must be told with this correction attached: the man whose household gives the story its intimacy was already gone by the time it is supposed to have happened.

The two companions who do appear by name in the sahih narrations — Ibn ‘Umar and Anas ibn Malik — were both, at the time, children or very young men. ‘Abdullah ibn ‘Umar was a boy when the Hijrah took place; his father ‘Umar ibn al-Khattab was among the earliest and most prominent converts, but Ibn ‘Umar’s own testimony about Quba’ comes from a young witness’s clear, vivid, but childhood memory. Anas ibn Malik, who narrates the Banu Salamah account in Muslim 527, had come to serve the Prophet ﷺ as a young attendant shortly after the Hijrah and would have been resident in Madinah during this period, but he too was a child — a detail that does not diminish the reliability of his transmission, since hadith science does not require adult status at the time of witnessing, only sound transmission afterward, but that adds useful texture to how we imagine these scenes: not solemn elders alone, but children among the worshippers who turned.

The Prophet ﷺ and the Wider Life of the Neighborhood

It is worth situating this single episode within the broader texture of daily life in the Banu Salamah quarter during the Prophet’s ﷺ Madinan years, if only to make clear how modest and unremarkable this particular corner of the oasis was before the qiblah change gave it a name. Banu Salamah, a clan of the Khazraj descended by Arab genealogical tradition through the Qahtani lineage via Kahlan, had settled the northwest quarter of Madinah, in the area known as Harrat al-Wabrah, defending the oasis’s northwestern approaches. This was ordinary settled ground, dotted with the same kind of small palm-and-mud neighbourhood mosques that served every clan quarter of Madinah in the earliest years of the Muslim community, no different in kind from dozens of similar structures scattered across the oasis. The Prophet ﷺ moved through this wider landscape often enough in the course of ordinary life — visiting companions, attending to community affairs, and, as the hadith regarding Wadi al-Aqiq records separately, receiving revelation even while resting in the valley nearby, where he is reported to have said that an angel came to him and told him to pray in that blessed valley, a report recorded by al-Bukhari on the authority of ‘Umar ibn al-Khattab. That hadith has no connection to the qiblah change, but it is worth mentioning here because it demonstrates that this general area of Madinah was not spiritually inert ground even apart from the qiblah episode — it carried its own, separate, better-documented layer of prophetic memory, even if that layer is unrelated to the mosque under discussion in this guide.

Qur’anic Connections

The Text: Surah al-Baqarah 2:142–150

The qiblah change is recorded and commanded across nine consecutive verses of Surah al-Baqarah, one of the longest sustained passages of legal and theological commentary on a single historical event anywhere in the Qur’an. This guide presents the key verses in full, in Arabic, followed by translation, followed by their classical exegetical treatment.

﴿سَيَقُولُ السُّفَهَاءُ مِنَ النَّاسِ مَا وَلَّاهُمْ عَن قِبْلَتِهِمُ الَّتِي كَانُوا عَلَيْهَا ۚ قُل لِّلَّهِ الْمَشْرِقُ وَالْمَغْرِبُ ۚ يَهْدِي مَن يَشَاءُ إِلَىٰ صِرَاطٍ مُّسْتَقِيمٍ﴾

“The foolish among the people will say, ‘What has turned them away from their qiblah, which they used to face?’ Say, ‘To Allah belongs the east and the west. He guides whom He wills to a straight path.'” — Surah al-Baqarah 2:142

This verse anticipates an objection before the change is even formally commanded — a rhetorical structure that itself tells us something about how the Qur’an handles controversy: naming the criticism in advance, rather than waiting for it to arrive and responding defensively. The identity of “al-sufaha’,” the foolish ones, is discussed by classical exegetes with some variation. Al-Tabari records what he presents as the consensus among “ahl al-ta’wil” (the exegetes broadly) that the term refers to the Jews and the hypocrites, or “ahl al-nifaq,” of Madinah — those who would use the change as a pretext to sow doubt about the consistency of the Prophet’s ﷺ message. Other opinions circulate in secondary tafsir literature attributing the term more specifically to Arab polytheists, to Jewish rabbis, or to the hypocrites alone, with different classical names attached to each variant reading; those more granular attributions could not be independently verified against a primary critical edition in the research behind this guide, and are noted here as circulating opinions rather than settled fact.

﴿وَكَذَٰلِكَ جَعَلْنَاكُمْ أُمَّةً وَسَطًا لِّتَكُونُوا شُهَدَاءَ عَلَى النَّاسِ وَيَكُونَ الرَّسُولُ عَلَيْكُمْ شَهِيدًا ۗ وَمَا جَعَلْنَا الْقِبْلَةَ الَّتِي كُنتَ عَلَيْهَا إِلَّا لِنَعْلَمَ مَن يَتَّبِعُ الرَّسُولَ مِمَّن يَنقَلِبُ عَلَىٰ عَقِبَيْهِ ۚ وَإِن كَانَتْ لَكَبِيرَةً إِلَّا عَلَى الَّذِينَ هَدَى اللَّهُ ۗ وَمَا كَانَ اللَّهُ لِيُضِيعَ إِيمَانَكُمْ ۚ إِنَّ اللَّهَ بِالنَّاسِ لَرَءُوفٌ رَّحِيمٌ﴾

“And thus We have made you a just [i.e., balanced] community that you will be witnesses over the people and the Messenger will be a witness over you. And We did not make the qiblah which you used to face except that We might make evident who would follow the Messenger from who would turn back on his heels. And indeed, it is difficult except for those whom Allah has guided. And never would Allah have caused you to lose your faith [i.e., your previous prayers]. Indeed, Allah is Kind and Merciful to the people.” — Surah al-Baqarah 2:143

This is, in many ways, the theological heart of the entire passage, and it does two distinct pieces of work at once. First, it names the Muslim community “ummatan wasatan” — a just, balanced, or middle community — called to serve as witnesses over humanity, just as the Messenger ﷺ serves as a witness over them. Ibn Kathir devotes considerable commentary to this phrase, citing hadiths transmitted through Ahmad ibn Hanbal, al-Bukhari, al-Tirmidhi, al-Nasa’i, and Ibn Majah describing how, on the Day of Judgment, the prophet Nuh’s community will be asked whether his message reached them, and how this ummah’s role as a balanced, moderate witness-community echoes the legal requirement of multiple reliable witnesses in matters of testimony.

Second, and directly relevant to the qiblah change, the verse explains the entire episode’s purpose: the earlier qiblah, and its change, existed “that We might make evident who would follow the Messenger from who would turn back on his heels.” In other words, the change was a test — not a whim, not a correction of a prior mistake, but a deliberate mechanism for distinguishing sincere obedience from conditional loyalty. The verse concedes plainly that the test was hard: “and indeed, it is difficult, except for those whom Allah has guided.” And then comes the sentence that answers, directly and by name, an anxiety this guide has already described: what of the believers who died during those sixteen months, having prayed faithfully toward Jerusalem their entire short remaining lives, never knowing a change was coming? “Never would Allah have caused you to lose your faith” — understood by the classical commentators, and stated explicitly in Bukhari 40 itself, to mean that those earlier prayers, offered in good-faith obedience to the qiblah in force at the time, were not wasted, were not invalidated, and did not need to be repeated by anyone, living or dead. Ibn Kathir cites a report via Ibn Ishaq describing a man who came to the Prophet ﷺ specifically to ask “what about our brothers who died… while praying toward Jerusalem?” — and identifies this question as the direct occasion for this portion of the verse’s revelation.

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

“We have certainly seen the turning of your face, [O Muhammad], toward the heaven, and We will surely turn you to a qiblah with which you will be pleased. So turn your face toward al-Masjid al-Haram. And wherever you [believers] are, turn your faces toward it…” — Surah al-Baqarah 2:144

This is the operative verse — the command itself, the one whose revelation is directly connected in the hadith literature to the mid-prayer turning at Quba’ and at the mosque of Banu Salamah. Its opening clause is addressed directly and personally to the Prophet ﷺ: “We have certainly seen the turning of your face… toward the heaven” — confirming, in the Qur’an’s own words, that his private longing described above had already been noted before this command arrived. The verse then issues the new direction in explicit and universal terms: face al-Masjid al-Haram, the sacred mosque in Makkah, “and wherever you are, turn your faces toward it” — a phrase whose global scope becomes the foundational textual basis for the entire body of fiqh, discussed later in this guide, concerning how Muslims anywhere on earth determine their prayer direction.

Classical scholars, drawing on a report attributed to Ibn ‘Abbas and recorded by al-Tabari, describe this verse as marking the first instance of naskh, or abrogation, in the Qur’an — the first time a divine command in force was formally superseded by a later one. Al-Tabari records the statement directly: “the first thing that was abrogated from the Qur’an was the [command regarding the] prayer direction.” Ibn Kathir draws out the fiqh implication that follows from this designation: abrogation, as a legal principle, only takes effect once knowledge of the new ruling actually reaches the person bound by it — which is precisely why the believers who prayed toward Jerusalem in ignorance of the change, whether for a few more hours or, in the case of the deceased, permanently, incurred no penalty and needed no correction.

﴿…لِئَلَّا يَكُونَ لِلنَّاسِ عَلَيْكُمْ حُجَّةٌ إِلَّا الَّذِينَ ظَلَمُوا مِنْهُمْ…﴾

“…so that the people will not have an argument against you, except for those who commit wrong among them…” — Surah al-Baqarah 2:150 (echoing 2:149)

Verses 2:149 and 2:150 repeat, twice, the command to face al-Masjid al-Haram “wherever you go out [for prayer],” each time attaching a rationale: so that no one — neither the Jews and Christians who might have argued that Muslims should retain their earlier direction, nor the Makkan polytheists who might have argued that Muslims had no legitimate claim to the Ka’bah at all — would have grounds for objection, except for those “who commit wrong,” who will object regardless of the evidence set before them. The repetition itself, across three verses in close succession, has been read by commentators as an indication of how seriously the Qur’an treated the need to close down potential controversy on this point, given how central this act of daily, repeated physical orientation is to Muslim identity and practice.

Variant Reports on the Reason for the Original Jerusalem Qiblah

Al-Tabari’s Tafsir preserves genuine variation among the earliest generations of exegetes as to why Jerusalem was chosen as the initial direction of prayer at all, and this guide reports that variation rather than resolving it into a single confident answer. One line of reports frames the choice as the Prophet’s ﷺ own, made deliberately in the hope of drawing the Jewish tribes of Madinah — numerically and politically significant in the oasis at the time of the Hijrah — closer to his message, by sharing with them a sacred direction they already recognized and revered. A second line of reports frames it instead as a direct divine instruction, given without any explanation attached, that the Prophet ﷺ simply obeyed as he obeyed every other revealed command. Ibn Kathir’s citation of the report attributed to Ibn ‘Abbas leans toward the first explanation, noting that “the majority of its people were Jews” upon the Prophet’s ﷺ arrival in Madinah, and that the Jewish community were pleased when he initially faced their sacred direction. Both explanations coexist in the classical literature without one being definitively established over the other, and a reader should understand this as one more instance, among several this guide has already documented, of genuine, acknowledged variation within the earliest transmitted material about this episode.

The Reaction of the People of the Book

The Qur’an and the hadith literature agree that the qiblah change produced real friction with the Jewish community of Madinah, and this guide should not soften that friction into vague generalities. Bukhari 40 records the plain historical claim that Jews and Christians alike had approved of Muslims sharing their sacred direction, and that this approval turned to displeasure once the direction changed. Ibn Kathir’s citation of the ‘Aisha hadith regarding Jewish envy over the qiblah, Friday, and “Amin” situates this displeasure within a wider pattern of religious rivalry over ritual distinctiveness — not a single isolated grievance, but one instance of a broader argument over which community held the truer claim to prophetic continuity. This guide reports this because the sources report it, not to cast blame in either direction across fourteen centuries, but because understanding the qiblah change purely as an internal Muslim ritual event, detached from its interfaith context in Madinah at the time, would understate what the Qur’an itself says was actually happening.

The Legal Weight of the Word “Shatrahu”

Classical commentators paid close attention to the precise Arabic wording of the command in 2:144 and 2:149–150, particularly the word shatrahu, translated above as “toward it.” Exegetes discussed whether this word requires physical, precise alignment with the Ka’bah itself, or whether it permits facing the general direction of Makkah — a linguistic question with direct legal consequences, since it underlies the entire later fiqh discussion, addressed later in this guide, about how much deviation from exact alignment is tolerable for those praying at a distance. The word’s flexibility, most classical jurists concluded, is itself built into the ayah: a person standing in Madinah, in Damascus, or in a location as distant as Muslim Spain or Muslim China could not be expected to achieve architectural precision, and the command’s phrasing was understood from the earliest generations of scholarship to accommodate exactly that reality.

Why the Qur’an Repeats the Command Three Times

A reader moving through 2:144, 2:149, and 2:150 in sequence will notice that the instruction to face al-Masjid al-Haram is not stated once and left to stand; it is restated, with variations, across three separate verses in close succession. Classical exegesis treats this repetition as intentional and purposeful rather than redundant. Each repetition attaches a slightly different rationale or audience: the first instance addresses the Prophet ﷺ directly and announces the change; the second and third address the wider believing community and anticipate specific objections — from the Jews and Christians who might argue that Muslims had abandoned a shared prophetic tradition, and from the Makkan polytheists who might argue that Muslims had no legitimate claim to a sanctuary they did not yet control. Read this way, the triple repetition is less a stylistic flourish than a deliberate legal and rhetorical strategy: closing off every plausible line of religious argument against the new direction, one audience at a time, within the span of a few verses.

A Modern Lesson from an Ancient Test

Read as a whole, 2:142–150 offers a modern reader something more durable than a historical curiosity. It describes a community asked to change, immediately and without argument, a habit that had structured its most sacred daily act for over a year — and it frames that change not as instability but as a test with a clear and merciful design: to reveal sincerity, to reassure the anxious, and to establish a universal, portable rule — face the Ka’bah, wherever you are — that would serve every Muslim who ever lived after, in every country, in every era, long after Madinah’s local mosques and their disputed locations had become a matter for historians rather than worshippers. The permanence of the rule the verses establish stands in a kind of quiet contrast to the very uncertainty this guide has spent so much time describing about exactly where the first act of obedience to that rule took place. The location may be contested. The instruction it produced has never been.

Hadith References

This section consolidates every hadith connected to the qiblah change discussed in this guide, grouped by collection and companion narrator, each graded plainly according to the classifications used throughout this guide. A reader who wants only the primary evidentiary record, without the surrounding narrative, can use this section as a standalone reference.

The Al-Bara’ ibn ‘Azib Group

  • Sahih al-Bukhari 40. Authentic (sahih). Narrated by al-Bara’ ibn ‘Azib. States that the Prophet ﷺ prayed toward Bait al-Maqdis for sixteen or seventeen months after arriving in Madinah, that he wished to face the Ka’bah instead, that his first prayer facing the Ka’bah was ‘Asr in congregation, that a member of that congregation later informed a separate, unnamed group of worshippers who turned mid-ruku’, that the Jews and the people of the Scripture disliked the change, and that verse 2:143 was revealed concerning believers who died before the change occurred. Does not name any mosque for the second congregation that turned mid-prayer.
  • Sahih al-Bukhari 4486. Authentic (sahih). Al-Bara’ ibn ‘Azib, referencing the revelation of 2:144, describing “his Mosque” (the Prophet’s own) for the ‘Asr prayer and “another mosque” for the congregation that turned. No location named for the second mosque.
  • Sahih al-Bukhari 4492. Authentic (sahih). Al-Bara’ ibn ‘Azib, describing sixteen to seventeen months facing Jerusalem and referencing verse 2:149 (facing al-Masjid al-Haram). No mosque location named.
  • Sahih Muslim 525. Authentic (sahih). Al-Bara’ ibn ‘Azib: the Prophet ﷺ prayed toward Bait al-Maqdis for sixteen months until 2:144 was revealed; “a person amongst his people passed by the people of Ansar as they were engaged in prayer” and informed them, and they turned. The chapter heading in Sahih Muslim reads: “Changing the qiblah from al-Quds to the Ka’bah.” No mosque named.

A note on the al-Bara’ group as a whole: these four narrations are mutually consistent and unambiguously sahih, but none of them names a location for the mid-prayer turning they describe. Some scholars associate the “other mosque” of these narrations with a mosque of Banu Harithah, based on al-Bara’s own tribal affiliation with that clan — but this is an inference, not something stated in the hadith text itself, and should be presented to readers as such.

The Ibn ‘Umar Group: Masjid Quba’

  • Sahih al-Bukhari 403. Authentic (sahih), agreed upon by Bukhari and Muslim. Narrated by ‘Abdullah ibn ‘Umar: while the people were praying the dawn (Fajr) prayer at Masjid Quba’, someone came and told them the Qur’an had been revealed to the Prophet ﷺ commanding him to face the Ka’bah; they had been facing Sham (Syria) and turned toward the Ka’bah mid-prayer.
  • Sahih al-Bukhari 4488. Authentic (sahih). Ibn ‘Umar again, explicitly naming Masjid Quba’, the Fajr prayer, and the turning of faces from Sham to the Ka’bah.
  • Sahih al-Bukhari 7251. Authentic (sahih). Ibn ‘Umar, again explicitly “at Quba’,” during Fajr, faces turned from Sham toward the Ka’bah.
  • Sahih Muslim 526. Authentic (sahih). Ibn ‘Umar: people praying at Quba’, a man arrived saying revelation had come commanding them to face the Ka’bah; faces had been toward Syria; they turned toward the Ka’bah.

A note on the Ibn ‘Umar group: this is the single most explicit and unambiguous body of narration on the question of location anywhere in the sahih literature connected to the qiblah change. It names Masjid Quba’ by name, four separate times, across both Sahih al-Bukhari and Sahih Muslim, and specifies the Fajr prayer consistently. If a reader wants the one sahih-graded location for a mid-prayer qiblah turning that is beyond reasonable dispute, this is it — and it is not the mosque known today as Masjid al-Qiblatayn.

The Anas ibn Malik Narration: The Mosque of Banu Salamah

  • Sahih Muslim 527. Authentic (sahih). Narrated by Anas ibn Malik: the Messenger of Allah ﷺ used to pray toward Bait al-Maqdis; when 2:144 was revealed, “a man from Banu Salamah” came upon a congregation in ruku’, praying the dawn prayer, having already completed one rak’ah; he called out that the qiblah had changed, and they turned in that state. This is the only sahih hadith naming Banu Salamah explicitly. It specifies the Fajr prayer with one rak’ah completed. It is frequently mis-cited in popular literature as “Muslim 525” or “Muslim 526”; the correct reference, verified directly, is Muslim 527. It does not mention Zuhr, a house, a meal, or Umm Bishr.

The Umm Bishr / Ibn Sa’d Report

  • Ibn Sa’d, al-Tabaqat al-Kubra, via al-Waqidi (also preserved in Ibn Hajar’s Fath al-Bari, 2/116, and Ibn Kathir’s Tafsir, 1/237). Weak (da’if) as a matter of formal grading is not even technically applicable — this is more precisely an isnad-less historical report (a maghazi/sirah account transmitted without any chain of narrators to grade). States that the Prophet ﷺ visited Umm Bishr in Banu Salamah, ate a meal she prepared, and while leading two rak’ahs of Zuhr was commanded mid-prayer to face the Ka’bah, giving the site its name. Hedged by its own transmitter, al-Waqidi, with the words “it was said… it was said,” and endorsed by Ibn Sa’d only as “more sound in our view” among competing versions, not as certain. This is the report that underlies the popular identification of today’s Masjid al-Qiblatayn as the site of the qiblah-change revelation, and it is the report IslamQA’s fatwa addresses directly in concluding that visiting the site on this basis is not recommended.
  • The Nuwaylah bint Muslim report, via Ibn ‘Abd al-Barr, quoted in Ibn Kathir’s Tafsir. Same category: isnad-less historical report, not a graded hadith. Describes the congregation physically swapping front and back rows once the direction reversed.

Hadiths Sometimes Wrongly Cited in This Context — and Why They Should Not Be

  • Sahih al-Bukhari 41. Unrelated. This hadith, narrated by Abu Sa’id al-Khudri, concerns the forgiveness of a person’s past sins upon their sincere embrace of Islam. It has no connection whatsoever to the qiblah change. It is sometimes cited alongside Bukhari 40 in error in secondary and popular literature discussing the qiblah change; this guide flags the error so it is not repeated.
  • Sahih al-Bukhari 5257. Unrelated. This hadith belongs to the Book of Divorce, concerning Sahl ibn Sa’d, and has no bearing on the qiblah change whatsoever. Any source citing this number for the Banu Salamah narration is mistaken.

A Hadith on Mid-Prayer Correction, More Generally

  • IslamQA fatwa #40, drawing on the Anas hadith (Muslim 527) as its evidentiary basis, states the general fiqh principle: if a congregation is informed mid-prayer of the correct qiblah direction, all should turn, and whatever portion of the prayer was completed before the correction remains valid. This is a scholarly application of the hadith’s content to ongoing worship, not itself a separate hadith.

Why So Little Survives From the Rashidun, Umayyad, and Abbasid Periods

Before turning to the period-by-period chronology, it is worth pausing on why the documentary record for this particular mosque is so thin across such a long historical stretch — roughly the Rashidun caliphate through the Abbasid period, a span of several centuries. Unlike Masjid an-Nabawi, which held the Prophet’s ﷺ own grave and pulpit and was therefore the subject of continual attention, expansion, and chronicling by every ruling dynasty that controlled the Hijaz, Masjid al-Qiblatayn was, for most of its history, exactly what it had started as: a modest neighbourhood mosque serving a single residential quarter of Madinah. Local neighbourhood mosques of this kind rarely attracted the same level of chronicling attention from medieval historians and travelers, whose surviving accounts of Madinah tend overwhelmingly to focus on the Prophet’s Mosque itself, on Masjid Quba’ given its explicitly documented prophetic visits and the sahih hadith describing the reward for praying there, and on the major cemeteries and battle sites tied to specific, well-attested Seerah events. This does not mean nothing happened to the mosque during these centuries; it means what happened went largely unrecorded in the sources available to modern researchers, a limitation this guide states openly rather than filling with invented detail.

Historical Development

The Original Mosque, 2 AH (623/624 CE)

The first structure on this site is credited, in both Wikipedia’s and Saudipedia’s accounts, to Sawad ibn Ghanam ibn Ka’b al-Ansari, who is said to have built it in the second year after the Hijrah using palm trunks for its supports and palm fronds for its roofing — construction identical in method and material to the earliest Prophet’s Mosque itself and to the earliest mosque at Quba’. No primary hadith source was identified in the research behind this guide that specifically attributes the mosque’s construction to Sawad ibn Ghanam; this should be treated as a historical and biographical claim, carried by later biographical literature, rather than something established by a graded hadith. It served, in this earliest form, as the local neighbourhood mosque of the Banu Salamah clan — one of many such small mosques scattered through Madinah’s quarters in the first years of the Muslim community there.

The Rashidun Period: A Documentary Silence

No specific renovation or expansion is documented in the sources reviewed for this guide for any of the four Rightly Guided Caliphs individually. It is likely that the mosque’s early palm-based fabric persisted through this period with only routine local maintenance, in keeping with the general modesty of neighbourhood mosque construction across the oasis at the time, but this guide will not invent a Rashidun-era building programme the sources do not describe. A fuller answer to this question would require direct consultation of Ibn Shabbah’s Tarikh al-Madinah, a primary source not directly accessed in the research behind this guide — a gap this guide states openly rather than filling with plausible-sounding invention.

The Umayyad Period: An Attribution Worth Flagging

Saudipedia attributes a renovation of the mosque to ‘Umar ibn ‘Abd al-‘Aziz, dated to 87 AH, or 706 CE, during his tenure as governor of Madinah under the Umayyads — a position he held before his later, more famous term as caliph. This is a plausible attribution, given ‘Umar ibn ‘Abd al-‘Aziz’s well-documented programme of expanding and improving Madinah’s mosques, including the Prophet’s Mosque itself, during his governorship. However, this guide could not independently verify this specific attribution against a primary source such as al-Samhudi’s Wafa’ al-Wafa, the standard classical topography of Madinah, which was not directly consulted in the research behind this guide. It is reported here as stated by Saudipedia, an official Saudi state encyclopedic source, but should be understood as requiring further primary-source confirmation rather than treated as settled fact.

A Long Silence, and a Late Mamluk-Era Renovation

Saudipedia’s chronology describes a gap of roughly eight hundred years with no major recorded rebuilding after the Umayyad-attributed work — a long span during which the mosque presumably continued to serve its local congregation without the kind of expansion or reconstruction that leaves a documentary trace. The next renovation on record is attributed to a figure named Shahin al-Jamali, dated by Saudipedia to approximately 1488 CE. The biographical and administrative context of this figure — whether he held a specific Mamluk-era office, for instance — was not independently corroborated in the research behind this guide, and is flagged here as a further point requiring primary-source confirmation.

The Ottoman Period: An Unverified Claim Worth Naming Rather Than Repeating as Fact

Wikipedia’s article on the mosque states, in general terms, that the site was “maintained historically” by later Ottoman figures, including a reference to Suleiman the Magnificent, without citing any specific inscription, waqf endowment document, or Ottoman archival source for this claim. Given the Ottoman empire’s extensively documented general practice of restoring and endowing mosques throughout the Haramayn region — Makkah and Madinah together — it would not be surprising if Masjid al-Qiblatayn received some form of Ottoman-era attention. But this guide has not been able to confirm a specific, named restoration by Suleiman the Magnificent or by Sultan Abdulmajid at this mosque in particular, in any of the primary or secondary sources consulted. This should be treated as an unverified claim pending consultation of Ottoman archival sources or of Ibrahim Rif’at Pasha’s Mir’at al-Haramayn, neither of which was directly accessed in the research behind this guide. This guide would rather state that gap plainly than repeat an unverified attribution as though it were established history.

1931 (1350 AH): Expansion Under King ‘Abd al-‘Aziz

Under the founding monarch of Saudi Arabia, King ‘Abd al-‘Aziz Al Sa’ud, the mosque was expanded to approximately 425 square metres, with a surrounding wall and a minaret added — the first clear, well-documented physical expansion of the site in the modern era, and a modest one by comparison with what would follow later in the twentieth century.

1987 (1407–1408 AH): The Complete Rebuild

The mosque’s present form dates to a comprehensive, ground-up rebuild commissioned under King Fahd and designed by the Egyptian architect Abdel-Wahed El-Wakil, a disciple of the celebrated traditionalist architect Hassan Fathy and a committed advocate of historic Islamic building methods and materials over modern industrial construction. This rebuild is significant enough, and consequential enough for how the mosque presents its own history to visitors today, that it receives a full architectural treatment in the next section of this guide — including the fact, stated here plainly and returned to below, that the rebuild removed the mosque’s second, Jerusalem-facing mihrab, the very feature that gave the site its name and its two-qiblas identity in built form.

The King Abdullah Era and Beyond

Saudipedia references further repairs to the mosque under King Abdullah, without providing further specific detail on their scope or date in the source consulted for this guide. In October 2025, a royal and ministerial directive under King Salman opened the mosque for twenty-four-hour access — a significant practical change for visitors, discussed further in the practical guide section below. And as of the 2025–2026 period, a large redevelopment project known as the Al-Qiblatayn Boulevard or Cultural Center has been reported as under way around the mosque, discussed in full in the practical guide section, since its figures come from project-announcement and industry social-media sources rather than a single authoritative government release, and should be treated as indicative of scale and direction rather than as final, audited numbers.

Architecture

What the Mosque Looked Like Before 1987

Before the 1987 rebuild, the mosque’s defining architectural feature — the one that gave it its name in built form, not merely in narrative — was the presence of two mihrabs: one facing the Ka’bah, to the south, and one facing Jerusalem and greater Syria, to the north. A mihrab is the niche set into a mosque’s qiblah wall that indicates the direction of prayer, and a mosque with two functioning or formerly functioning mihrabs facing opposite directions is a rare and immediately legible architectural statement — a building that wears its own history on its face, so to speak, for any visitor who steps inside and sees two niches where every other mosque has one.

The 1987 Rebuild: What Changed

The rebuild commissioned under King Fahd and designed by Abdel-Wahed El-Wakil was comprehensive rather than cosmetic — effectively a new mosque built on the same footprint and following the same general orientation as its predecessor, using historic construction methods that El-Wakil championed throughout his career: load-bearing brick masonry, with reinforced concrete minimized and confined largely to foundations and platform structures, in deliberate contrast to the poured-concrete modernism that had come to dominate large-scale construction across the Gulf region by the 1980s.

The most historically significant change made in this rebuild — the one this guide considers essential to state plainly, because it materially affects what a visitor today can and cannot actually see — is this: the northern mihrab, the one that had faced Jerusalem, was removed. In its place, the new design installed a small marker or memorial mihrab, set beneath a false dome connected to the main structure by a cross-vault. This marker commemorates the site’s historic two-qiblas identity without functioning as an actual, usable second prayer-direction niche. A visitor standing inside the rebuilt mosque today is not looking at the original Jerusalem-facing mihrab preserved from the time of the Prophet ﷺ, or even from any of the mosque’s documented medieval renovations. They are looking at a modern architectural gesture toward that history, built new in 1987, referencing rather than reproducing what stood there before.

This detail matters because visitor accounts and travel writing about the mosque sometimes describe “seeing the original two mihrabs” in language that implies architectural continuity with the earliest structure, or even with the qiblah-change event itself. That description is not architecturally accurate for the mosque as it exists after 1987, and this guide addresses it more fully in the misconceptions section below. The design of the memorial mihrab itself draws, according to architectural documentation, on the lower-chamber Mihrab Suleimani of the Dome of the Rock in Jerusalem — an intentional art-historical echo linking the marker back to the city the original northern mihrab once faced, even though the physical fabric connecting the two is entirely new.

Scale, Materials, and Layout

The rebuilt mosque covers a total site area in the range of 3,920 to 4,000 square metres, according to Archnet’s documentation (part of the Aga Khan Award for Architecture’s archive of reviewed and shortlisted projects) and VisitSaudi’s official figures, with the ground-floor prayer area itself covering approximately 3,069 square metres. The building is arranged across three levels and is crowned by two domes, variously reported as approximately 20 metres and 17 metres in height by VisitSaudi, and elsewhere described as two domes of roughly 8 metres in diameter, standing at approximately 19 to 20 metres in height — the range in figures reflecting differences between official tourism-authority reporting and other secondary architectural sources rather than a resolved single measurement. Two minarets, each approximately 40 metres tall, rise from the building. Reported prayer capacity ranges from approximately 2,000 up to newer reporting of as many as 3,000 worshippers.

A detailed academic source on El-Wakil’s body of work situates Masjid al-Qiblatayn among eleven mosques the architect designed for Jeddah and Madinah, completed between 1986 and 1989, and describes his design references as drawing on Mimar Sinan’s sixteenth-century Sokullu Mehmet Pasha Mosque in Istanbul and the thirteenth- or fourteenth-century Ashrafiyya Mosque in Ta’iz, Yemen, layered with Egyptian vernacular building traditions El-Wakil had absorbed from his training under Hassan Fathy. The same source records El-Wakil as an outspoken critic of architectural modernism, attributing to him a description of Le Corbusier as “the Hitler of architecture” — a characteristically blunt remark from an architect who built his career in deliberate opposition to the modernist mainstream of his profession.

An Arabic-language documentary on El-Wakil’s mosque projects offers further figures for the rebuild — more than two million red clay bricks made from Madinah’s own soil, approximately 4,500 square metres of granite sourced from the Najran region, and more than three hundred craftsmen involved in construction; a main prayer hall seating approximately 2,000 with an elevated women’s prayer area; five vaults running parallel to the qiblah wall; and a construction process that avoided reinforced concrete almost entirely. These specific figures come from a documentary source rather than from El-Wakil’s own published writings or an independent engineering report, and this guide reports them as attributed claims rather than independently verified statistics. The same documentary quotes the architectural theorist Léon Krier praising El-Wakil’s mosques as “created to live many times longer than the bloated, unhealthy lifespan of massive modern buildings” — a striking endorsement of the deliberately traditional, anti-industrial building philosophy behind the 1987 rebuild.

Site Constraints and Design Response

Design documentation held in MIT’s Rotch Library, along with an MIT thesis examining El-Wakil’s mosque designs, describes the site as triangular in plan, bounded by an ancient cemetery to the west and by streets on its other two sides, with the mosque’s qibla wall aligned to the southern street frontage. This triangular constraint shaped the building’s overall footprint and required the architect to resolve the tension between an irregular urban site and the fixed, non-negotiable geometric requirement that the qibla wall face precisely toward Makkah — itself a quiet echo, in the language of modern architectural practice, of the very question of prayer direction that gives the site its historical meaning.

The Aga Khan Award: What Actually Happened, and What Did Not

A claim circulates in some popular sources that Masjid al-Qiblatayn itself won the Aga Khan Award for Architecture. This guide can state plainly, based on Archnet’s own documentation, that this is not accurate, or at least cannot be confirmed as accurate, and should not be repeated as fact. Masjid al-Qiblatayn appears in Archnet’s archive under the heading “Aga Khan Award for Architecture On-site Reviewed and Shortlisted Projects, 1980–2025” — meaning the building was formally reviewed and placed on a shortlist for consideration, not that it received the award itself. Abdel-Wahed El-Wakil did win the Aga Khan Award twice in his career, but for two entirely different projects: the Halawa, or Agamy Beach, House in 1980, an award he shared explicitly with his chief mason, Ala-el-Din Moustafa, and the Corniche Mosque in Jeddah in 1989. In a recorded interview, El-Wakil describes insisting that Moustafa be honoured alongside him when the award jury initially resisted the idea of crediting a craftsman alongside an architect — recounting that he wrote directly to Prince Karim Aga Khan to make the case that recognizing the people who build, and not only the person who designs, was the entire point of an award meant “to promote architecture for Muslims.” That story, however, concerns the 1980 Agamy Beach House recognition specifically, not Masjid al-Qiblatayn. This guide reports El-Wakil’s shortlisting for Masjid al-Qiblatayn honestly, as a shortlisting, precisely because overstating it into a win would be the kind of small, avoidable inaccuracy this guide has committed, throughout, not to repeat.

What Was Lost in Translation From Palm Trunks to Load-Bearing Brick

It is worth reflecting, in closing this section, on the full arc this single plot of ground has traveled architecturally — from a modest structure of palm trunks and palm-frond roofing in 2 AH, through a documentary silence of many centuries, through scattered and only partially verifiable medieval renovations, to a fully engineered, three-level, twin-domed monument of brick and Najran granite designed by one of the twentieth century’s most committed traditionalist architects. Very little about the physical building a visitor stands inside today would be recognizable to the worshippers described in the sahih hadiths and historical reports this guide has examined — not the materials, not the scale, not the surrounding streetscape of Khalid ibn al-Walid Road. What has not changed, and what the 1987 rebuild was explicitly designed to commemorate rather than replace, is the site’s association with the story of the qiblah change itself, however contested the precise details of that association remain. The building’s history of Madinah, in other words, is a history of near-total physical replacement layered onto a single point of continuous popular memory — a pattern common to many historical landmarks in Saudi Arabia and across the Islamic world, where a site’s meaning persists far longer than any particular structure built to house it.

A Completion-Date Discrepancy, Disclosed Rather Than Resolved

Multiple sources give slightly different completion years for the 1987 rebuild, and this guide will state the discrepancy rather than pretend to a certainty the record does not support. Saudipedia, Wikipedia, and Archnet’s own documentation point to 1987, corresponding to 1407 AH. The Arabic-language documentary on El-Wakil’s work states the mosque became operational in 1408 AH, corresponding to 1988 CE. A separate academic source frames the entire group of eleven mosques El-Wakil designed in this period, including this one, as completed “between 1986 and 1989” without pinning down this specific building further. And Muslim Heritage’s biographical page on El-Wakil states the mosque was “built in 1992” — a claim that conflicts with every other source consulted. This guide treats 1987 as the best-supported year, since it is corroborated by multiple independent, higher-trust sources, including the mosque’s own architectural documentation archive, while noting openly that 1988 and 1992 also appear in circulation and cannot be dismissed outright without further primary verification.

Archaeological Findings

An Honest Statement of the Record

No dedicated archaeological excavation of Masjid al-Qiblatayn has been identified in the research behind this guide, and this guide will state that plainly rather than dressing up architectural documentation as archaeology, or inflating scattered secondary claims into findings they do not support. The 1987 rebuild replaced the mosque’s earlier physical fabric entirely, and whether any archaeological recording, formal survey, or salvage documentation was carried out before or during that rebuild could not be confirmed from any source consulted. Archnet, Saudipedia, Madain Project, and the academic architecture literature examined for this guide all discuss the building’s design, materials, and history — they do not discuss excavation findings, because none appear to have been published.

What Academic Engagement With the Site Actually Consists Of

Setting aside the absence of excavation, academic and quasi-academic engagement with Masjid al-Qiblatayn falls into three distinct categories, and it is worth naming them separately so a reader understands what kind of scholarship actually exists on this site, rather than assuming a uniform body of “research” that does not exist in that form.

The first category is architectural-history documentation of the 1987 El-Wakil rebuild specifically — the Archnet archive entry, the MIT thesis and Rotch Library holdings, and the Mosqpedia academic study of El-Wakil’s broader body of work. This is real, substantive documentation, but its subject is a twentieth-century building project, not the seventh-century historical event the mosque commemorates.

The second category is the broader historical-critical literature on Madinah’s sacred topography as a whole, chiefly Harry Munt’s The Holy City of Medina: Sacred Space in Early Islamic Arabia (Cambridge University Press, 2014), discussed at length in the Historical Background section of this guide. Munt’s work addresses Madinah’s status as a sacred city in general historical and religious-studies terms; it does not focus specifically on this mosque, and should not be cited as though it constitutes a dedicated study of the site.

The third category is the hadith-critical and tafsir literature addressed throughout the earlier sections of this guide — the work of classical scholars such as Ibn Hajar al-‘Asqalani and Ibn Kathir, and modern fatwa institutions such as IslamQA, engaging with the textual and narrational evidence for the qiblah change. This is rigorous scholarship in its own right, within the discipline of hadith science and Qur’anic exegesis, but it is textual and narrational analysis, not archaeology, and should not be conflated with physical evidence recovered from the ground.

Put simply: there is no known modern archaeological excavation report specific to this site. This guide does not manufacture one, and any future claim of excavation findings at Masjid al-Qiblatayn should be treated with appropriate caution until it can be traced to a published, citable source.

What a Future Excavation Would Need to Show

It is worth being specific, rather than vague, about what kind of physical evidence would actually be needed to settle the location question this guide has spent so much space on. A conclusive archaeological finding would need to identify, beneath or alongside the 1987 rebuild’s foundations, structural remains datable to the earliest years of the Hijrah — palm-trunk postholes, an early qibla-wall alignment distinct from the later Ka’bah-facing orientation, or an inscribed marker contemporaneous with the event itself. No such excavation has been reported, and given that the 1987 rebuild was a comprehensive, ground-up reconstruction rather than a restoration that preserved earlier fabric in place, it is unclear how much of any earlier structure would even survive beneath the present building to be excavated at all. This guide raises the question only to make clear that the absence of archaeological evidence is not a minor oversight in the historical record; it is a genuine, structural limit on how far anyone — scholar or pilgrim — can go in verifying the mosque’s popular founding story through means other than the hadith and historical-report evidence already examined at length above.

Stories of the Companions

Al-Bara’ ibn ‘Azib: The Witness Whose Testimony Carries the Weight of the Story

Al-Bara’ ibn ‘Azib رضي الله عنه stands, by the sheer volume of hadith transmitted in his name on this subject, as the most important single witness to the qiblah change that survives in the sahih literature. A young Ansari of the Banu Haritha clan at the time of the Hijrah, he lived through the sixteen or seventeen months of prayer toward Jerusalem, and his testimony — preserved across Bukhari 40, 4486, and 4492, and Muslim 525 — is the source for several of the episode’s most human details: the Prophet’s ﷺ own preference for the Ka’bah, expressed before any command to change had come; the Jewish and Christian community’s initial approval of the earlier direction and their subsequent displeasure; and the direct textual link between the qiblah change and the revelation of verse 2:143, addressing the fate of believers who died praying toward Jerusalem. Al-Bara’ went on to live a long life as a respected transmitter of hadith in Kufa, and his account of the qiblah change is retold here not as a single anecdote but as the backbone of the entire sahih record on this subject.

‘Abdullah ibn ‘Umar: A Child’s Clear Memory of Quba’

Ibn ‘Umar رضي الله عنهما was a boy at the time of the qiblah change — his father, ‘Umar ibn al-Khattab, was already among the earliest and most senior converts to Islam, but Ibn ‘Umar himself would grow into his own standing as a transmitter of hadith only over the following decades. His testimony, recorded in Bukhari 403, 4488, 7251, and Muslim 526, is the clearest and most repeatedly corroborated location testimony in the entire body of qiblah-change narrations: Masjid Quba’, during the Fajr prayer, faces turning from the direction of Syria to the direction of the Ka’bah. That a child’s memory of a single dawn prayer would become, centuries later, the single most load-bearing piece of evidence in a historical debate about where a Qur’anic verse was revealed, is itself a reminder of how much of early Islamic history rests on the honest, careful transmission of ordinary personal memory rather than official record-keeping.

Anas ibn Malik: A Young Attendant’s Account of Banu Salamah

Anas ibn Malik رضي الله عنه, who came to serve the Prophet ﷺ as a young attendant not long after the Hijrah, is the sole sahih source for the specific claim that a mid-prayer turning occurred at the mosque of Banu Salamah, recorded in Muslim 527. His account — a man from Banu Salamah arriving mid-ruku’, during the Fajr prayer, with one rak’ah already completed, calling out that the qiblah had changed — is precise about timing and posture in a way that gives it real narrative texture, and it is worth remembering that Anas would go on to become one of the most prolific hadith narrators in Islamic history, living for decades after the Prophet’s ﷺ death and transmitting an enormous body of material about the Prophet’s ﷺ daily life. His account of the Banu Salamah mosque deserves to be read with the same weight as his testimony on any other subject — which is to say, as sound and reliable as to its content, even as this guide has been careful throughout to note that it describes a different prayer, and arguably a different mosque, than the popular Umm Bishr story that gives today’s building its name.

Umm Bishr: The Woman at the Center of a Story Her Own Sources Cannot Fully Confirm

Umm Bishr, also recorded under the names Khalida, Khulaysah, or Khulaidah bint Qays, was the wife of al-Bara’ ibn Ma’rur and the mother of Bishr ibn al-Bara’. She is the companion at whose house, according to the isnad-less Ibn Sa’d report discussed at length earlier in this guide, the Prophet ﷺ is said to have been eating a meal she had prepared when the Zuhr-prayer qiblah change occurred — the story that gives the present-day mosque its popular name and founding legend, even though, as this guide has explained, that specific report cannot be traced back through a checkable chain of narrators. Umm Bishr is separately and securely attested in authentic hadith literature for a different, later episode in her life: after her son Bishr ibn al-Bara’ died from the effects of poison administered by a Jewish woman at Khaybar, Umm Bishr came to the Prophet ﷺ to ask whether the dead recognize one another, a report preserved in Sunan Ibn Majah. It is worth noting this second, better-attested episode alongside the more famous but weaker one, because it reminds a reader that Umm Bishr’s place in the historical record does not depend entirely on the qiblah-change story for its significance — she is a real, multiply-attested figure in early Madinan history, independent of the specific and contested claim attached to her house.

Al-Bara’ ibn Ma’rur: The Naqib Who Did Not Live to See It

Al-Bara’ ibn Ma’rur رضي الله عنه, Umm Bishr’s husband, was the naqib, or appointed tribal representative, of the Banu Salamah, and he holds a genuinely remarkable place in early Islamic history as the very first of the Ansar to give the pledge of allegiance to the Prophet ﷺ, doing so at both of the pledges of ‘Aqabah that preceded the Hijrah. Sirah literature, outside the framework of sahih hadith, credits him with a striking personal act of devotion: praying toward the Ka’bah on his own initiative, out of private conviction, even before the official qiblah change was ever revealed — a detail that, if accurately transmitted, would make him a kind of forerunner of the change the rest of the community experienced together later. But it is essential to state plainly what this guide has already flagged once and repeats here for emphasis: al-Bara’ ibn Ma’rur died shortly before the Hijrah took place. He could not have been present in his own household for an event — the Umm Bishr Zuhr-prayer story — that the sources themselves place well over a year after the Hijrah, when the Prophet ﷺ had already been resident in Madinah for many months. Any retelling of the Umm Bishr story that imagines al-Bara’ ibn Ma’rur present at his wife’s side for the qiblah change is, on the timeline the sources themselves establish, describing something that could not have happened as commonly imagined.

Sawad ibn Ghanam ibn Ka’b al-Ansari: The Mosque’s Builder

Sawad ibn Ghanam ibn Ka’b al-Ansari is credited by later biographical sources with constructing the original mosque on this site in 2 AH, using the same palm-trunk and palm-frond method common to Madinah’s earliest mosques. Little further biographical detail about him survives in the sources consulted for this guide beyond this attribution, which itself, as noted earlier, rests on historical and biographical literature rather than a hadith with a checkable chain. He nonetheless deserves a place in this guide’s account of the companions connected to the site, since without his original construction there would have been no neighbourhood mosque of Banu Salamah for later tradition to attach its story to at all.

Why Honest Historians Preserve Disagreement Rather Than Erasing It

It is worth pausing, before moving into the individual scholars whose work bears on this mosque, to note something about the classical Islamic scholarly tradition that a modern reader might not expect: its comfort, at the highest levels of hadith criticism and tafsir, with openly preserved disagreement. A less careful tradition might have quietly harmonized the Quba’ account, the Banu Salamah account, and the Umm Bishr tradition into a single, tidy narrative, smoothing over the discrepancies for the sake of a cleaner story. Instead, figures such as Ibn Hajar al-‘Asqalani and al-Tabari did the opposite: they named the discrepancy explicitly, graded the individual chains of transmission on their own merits, and left the tension standing rather than resolving it by editorial fiat. This is, in a real sense, the scholarly root of the entire methodology this guide has tried to follow — not a modern academic imposition on the tradition, but a continuation of a rigor the classical scholars themselves already practiced.

Stories of Great Islamic Scholars

Ibn Hajar al-‘Asqalani: The Classical Scholar Who Named the Problem

No figure in the classical scholarly tradition is more central to an honest account of Masjid al-Qiblatayn than Ibn Hajar al-‘Asqalani, the great fifteenth-century hadith master and author of Fath al-Bari, the standard and most authoritative commentary on Sahih al-Bukhari. It is Ibn Hajar who preserves, in that commentary, the fullest classical account of the competing traditions regarding the qiblah change’s location — Quba’, the mosque of Banu Harithah, and the mosque of Banu Salamah — and it is Ibn Hajar who states, in words this guide has already quoted and returns to because of their importance, that “the reports differ concerning the prayer during which the qiblah was changed, and the mosque in which that happened.” This is not a modern historian’s revisionist doubt imposed backward onto pious tradition. It is the assessment of one of the most rigorous and widely respected hadith critics in Islamic history, working centuries ago, with full access to the same body of transmitted material that later biographers and modern popular writers would go on to simplify into a single, tidier story. Ibn Hajar’s willingness to name the discrepancy rather than resolve it artificially is, in a real sense, the methodological model this guide has tried to follow throughout.

Ibn Kathir: Preserving Both the Popular Story and the Stronger Hadiths, Side by Side

Ibn Kathir, the fourteenth-century historian and exegete whose Tafsir al-Qur’an al-‘Azim remains one of the most widely read works of Qur’anic commentary in the Muslim world today, occupies an interesting position in this guide’s account, because his own treatment of the qiblah change preserves a genuine tension without fully resolving it. In his commentary on 2:143–144, Ibn Kathir repeats the Ibn Sa’d and Umm Bishr tradition as one report among several concerning where and how the change occurred, introducing it with language — “more than one of the commentators and others stated” — that itself signals a plurality of transmitted opinion rather than a single settled account. At the same time, Ibn Kathir’s Tafsir elsewhere affirms and transmits material consistent with the Sahihayn’s stronger Ibn ‘Umar and Quba’ account. He does not, in the material examined for this guide, explicitly reconcile the two traditions or declare one superior to the other. This guide has made that tension explicit rather than resolving it silently in favor of the more popular story, in keeping with Ibn Kathir’s own apparent comfort in transmitting multiple traditions without forcing artificial harmony between them.

Al-Tabari: An Early Witness to the Confusion Itself

Al-Tabari’s Tafsir, compiled in the ninth and tenth centuries and among the very earliest surviving comprehensive commentaries on the Qur’an, is valuable to this guide not only for its collection of asbab al-nuzul material on 2:142–150, but for a specific editorial footnote embedded within it: in transmitting a report from Anas describing the Prophet ﷺ praying Zuhr in Madinah for some nine or ten months before the qiblah change — a report distinct from the Quba’ account — al-Tabari’s own editorial tradition notes explicitly that this is “a different story” from the Sahih Muslim account of the morning prayer at Quba’. This is, in effect, a tenth-century acknowledgment of exactly the same conflation risk this guide has spent considerable space warning against: the danger of treating multiple, distinct early reports as though they described a single event. Al-Tabari’s text also demonstrates real methodological rigor in grading the isnads of the various reports he collects on this subject, explicitly labeling some “not a strong isnad,” others “broken” or “munqati’,” one as “mursal,” and at least one — the Ibn ‘Umar and Quba’ report shared by Bukhari and Muslim — as carrying “a very authentic [isnad].”

Al-Nawawi and the Fiqh of Correcting a Mistaken Qiblah

Imam al-Nawawi, the thirteenth-century Shafi’i jurist whose legal compendium Minhaj al-Talibin remains foundational to Shafi’i fiqh, addresses a question that descends directly from the qiblah-change episode, even though it is phrased in general legal terms rather than tied explicitly to this mosque: what happens when a person prays via ijtihad — personal reasoning about the correct direction — or via taqlid, following someone else’s determination, and later becomes certain that a mistake was made? Al-Nawawi held, as the stronger of two recorded Shafi’i opinions, that such a person must repeat the prayer once the error becomes certain. A second opinion within the Shafi’i school, attributed to the later jurist al-Ramli, held that no repetition is necessary, since the original departure from the correct qiblah was made in good-faith error and is therefore excused. This guide presents both opinions because the brief under which it is written requires that scholarly disagreement be reported fairly, without declaring one position correct.

Ibn Qudamah and the Latitude of “Between the East and the West”

Ibn Qudamah, the twelfth- and thirteenth-century Hanbali jurist and author of al-Mughni, one of the great works of comparative Islamic law, is the classical source cited for the practical application of a hadith — graded sahih by the twentieth-century hadith scholar al-Albani in his critical work al-Irwa’ — stating that “whatever is between the east and the west is qiblah.” Ibn Qudamah records that both Ahmad ibn Hanbal and Abu Hanifah held this as license for a degree of imprecision in facing the qiblah for those praying at a significant distance from Makkah, a ruling directly descended from the same body of prophetic guidance on prayer direction that the qiblah-change episode itself established and dramatized.

Ibn ‘Abd al-Barr on Negligence Versus Sincere Effort

Ibn ‘Abd al-Barr, the eleventh-century Andalusian scholar whose al-Tamhid remains an important work of hadith commentary and Maliki jurisprudence, is cited for a related but distinct principle: that a worshipper who prays without making any effort whatsoever to determine the qiblah direction must repeat that prayer, a position reported as a matter of scholarly consensus, or ijma’. This stands in careful contrast to the case of a worshipper who does make a sincere, reasonable effort and still errs — a distinction that maps directly onto the difference between negligence and honest mistake that runs through the fiqh of qiblah determination more broadly, discussed further below.

The Madhhabs in Brief: Malik, Abu Hanifah, al-Shafi’i, and Ahmad on the Fiqh This Event Produced

Although none of the four great Sunni imams left a specific, directly attributable ruling on Masjid al-Qiblatayn as a named site — unsurprising, given that the site’s popular identification postdates their own lifetimes by centuries in its present form — each of their schools inherited and developed the body of qiblah-determination fiqh that descends directly from the event this guide has documented. Imam Malik ibn Anas, whose school became dominant across Madinah itself in the generations after his death, is cited, alongside Abu Hanifah, as accepting a real degree of latitude in qiblah facing at a distance from Makkah, per Ibn Qudamah’s later synthesis in al-Mughni. Imam Abu Hanifah’s school developed what later Hanafi jurists would formalize as an approximately forty-five degree threshold of acceptable deviation for those praying beyond visual range of the Ka’bah, a position consistent with the general east-west latitude described in the hadith graded sahih by al-Albani. Imam al-Shafi’i’s school produced the more granular hierarchy of certain knowledge, reliable report, ijtihad, and taqlid that al-Nawawi later systematized in the Minhaj al-Talibin, along with the internal disagreement over whether a corrected ijtihad error requires repeating the prayer. Imam Ahmad ibn Hanbal, whose positions Ibn Qudamah’s al-Mughni preserves and defends at length, is recorded alongside Abu Hanifah as holding the more lenient of the two broad approaches to qiblah precision. None of these attributions are unique to this mosque — they are general fiqh principles that happen to descend historically from the event this mosque, rightly or wrongly, has come to symbolize in the popular imagination.

A Gap This Guide Will Not Paper Over: Ibn Taymiyyah and al-Samhudi

Two towering figures of Islamic scholarship whose engagement with Madinah’s sacred topography might be expected to include this mosque — Ibn Taymiyyah, the fourteenth-century jurist and theologian, and al-Samhudi, the fifteenth-century historian of Madinah and author of the standard classical topography Wafa’ al-Wafa bi-Akhbar Dar al-Mustafa — could not be traced, in the research behind this guide, to any specific, directly attributable statement about Masjid al-Qiblatayn itself. Al-Samhudi’s work in particular is exactly the kind of primary source that would be expected to discuss this mosque’s history and status in detail, since it remains the definitive classical account of Madinah’s sacred sites, but it was not directly accessed during the research for this guide. This is stated here as an open gap rather than filled with a plausible-sounding but unverified attribution, in keeping with the standard this guide has tried to hold throughout: where the evidence is not available, say so, rather than invent it.

The Fiqh of Determining Qibla Direction

Why This Event Still Governs How Muslims Pray Today

The revelation of 2:144 did not only settle a question for the community gathered in Madinah in the second year after the Hijrah. It established, in its own text, a rule meant to apply “wherever you are” — a phrase that has generated fourteen centuries of legal reasoning about what a Muslim must do when the Ka’bah cannot be seen, when the direction is uncertain, or when circumstances make precise orientation difficult or impossible. This section traces that legal descent directly from the qiblah-change event to the practical fiqh a Muslim traveling to Madinah today, or praying on an airplane on the way there, still relies on.

The Hierarchy of Knowledge

Scholarly guidance, summarized in fatwa literature such as that of the Mufti of the Federal Territory of Malaysia’s Irsyad al-Fatwa series, lays out a hierarchy of acceptable methods for determining the qiblah, in descending order of certainty. At the top sits direct, certain knowledge — someone who can see the Ka’bah itself, or a blind person who can touch its walls, has no need of estimation at all. Below that sits reliable information from a trustworthy, knowledgeable source — someone else who has already determined the direction correctly. Below that sits ijtihad — a worshipper’s own reasoned effort to determine the direction, whether by compass, by the position of the sun or stars, or by any other genuine method of inquiry available. And at the base of the hierarchy sits taqlid — simply following someone else’s ijtihad without independently verifying it. This hierarchy matters because it is the direct legal descendant of exactly the situation the Ansar found themselves in at Quba’ and at the mosque of Banu Salamah: worshippers already engaged in prayer, relying on a single informant’s word that the direction had changed, acting immediately on secondhand information rather than waiting for personal certainty.

When the Effort Was Sincere but the Direction Was Wrong

A question naturally follows from the reliance on ijtihad: what happens when a worshipper makes a genuine, careful effort to determine the qiblah, prays accordingly, and only later discovers the direction was mistaken? The majority scholarly position — held by Malik, by Abu Hanifah, and by one of the two recorded opinions within the Shafi’i school, and grounded in Ibn Qudamah’s al-Mughni — is that the prayer remains valid and does not need to be repeated, precisely because the effort behind it was sincere. Imam al-Nawawi’s Minhaj al-Talibin, however, records a competing Shafi’i position: that once a person praying by ijtihad or by taqlid becomes certain a mistake was made, the stronger opinion within the school requires that the prayer be repeated (qada’), while a second, later opinion attributed to al-Ramli held that no repetition is necessary at all, since the original error was made in good faith. This guide reports both positions because the underlying disagreement is real and unresolved across the schools, not because one is more defensible than the other; a worshipper following a particular school’s guidance should consult a qualified scholar of that school for a specific ruling.

A separate but related principle, drawn from Ibn ‘Abd al-Barr’s al-Tamhid, addresses the opposite case: a worshipper who makes no effort at all to determine the qiblah before praying. Here the position is reported as a matter of scholarly consensus, or ijma’ — such a prayer must be repeated, because the failure was one of negligence rather than honest error. The line between these two cases — sincere effort that happened to be wrong, and no effort at all — is, in a real sense, a legal echo of the qiblah-change episode’s own central concern: distinguishing sincere obedience from carelessness or indifference.

How Much Deviation Is Permitted

A hadith transmitted by Abu Hurayrah, recorded by al-Tirmidhi and Ibn Majah and graded sahih by the twentieth-century hadith scholar al-Albani in his critical work al-Irwa’, states plainly: “Whatever is between the east and the west is qiblah.” This has been read by classical jurists, including Ahmad ibn Hanbal and Abu Hanifah as recorded in Ibn Qudamah’s al-Mughni, as license for a real degree of imprecision for those praying at a significant distance from Makkah — the point of the ruling being that only those close enough to see the Ka’bah directly are held to the standard of facing it with architectural precision, while those farther away need only face its general direction. Contemporary scholarly opinion, including views expressed by Sheikh Assim al-Hakeem in widely circulated guidance and consistent with a threshold of roughly forty-five degrees cited within Hanafi fiqh guidance, places the acceptable margin of error at up to approximately forty-five degrees off the precise direction for those outside visual range of the Ka’bah.

Prayer on a Moving Vehicle

The qiblah-change episode’s core lesson — that facing the qiblah is a condition of valid prayer, but one that must be applied with realism about what is actually possible in the moment — extends directly into the modern question of praying while traveling. The Shafi’i position, drawn from guidance published by SeekersGuidance and IslamQA, distinguishes clearly between obligatory and voluntary prayer. For obligatory, or fard, prayer, a worshipper must stand and face the qiblah as closely as circumstances allow; on an airplane or a boat, this means standing if possible and adjusting one’s facing as the vehicle’s heading changes, since facing the qiblah remains a condition of the prayer’s validity; in a car, a worshipper is expected to stop and disembark in order to pray standing and correctly oriented if at all possible. Where facing the qiblah with any certainty is genuinely impossible — mid-flight, for instance, with no reliable way to determine direction — guidance holds that the prayer should still be performed within its proper time window, out of respect for the sanctity of prayer times, and then repeated later once conditions allow certainty. Voluntary, or nafl, prayer carries a distinctly lighter requirement: a traveler may pray facing the direction of travel throughout, inclining slightly further for the bowing and prostration positions to distinguish them from standing, a practice grounded in the authentic report that the Prophet ﷺ prayed voluntary prayers while riding his camel regardless of the animal’s direction. Other schools of Islamic law, including Ja’fari fiqh according to various contemporary maraji’, maintain broadly similar distinctions between the stricter requirements of obligatory prayer and the greater latitude allowed for voluntary prayer while traveling.

An Unresolved Question: An Unknown Direction Altogether

A further, less commonly discussed scenario within this body of fiqh concerns what a worshipper should do when the qiblah cannot be determined at all — no compass, no reliable informant, no visible celestial reference, and no prior knowledge of the local geography. Fatwa guidance addressing this situation holds that a worshipper in such circumstances should still pray, using whatever partial judgment is available, since the obligation to pray within its time window is not suspended by uncertainty about direction; the worshipper is not held responsible for a level of precision genuinely beyond their reach. This scenario is the closest modern equivalent to the situation faced, in reverse, by the community described throughout this guide: worshippers acting in good faith, under real uncertainty, with the law extending them the same grace after the fact that it extended the Ansar in the Qur’an’s own words — never would Allah have caused you to lose your faith.

Spiritual Reflection

Stand for a moment where the mosque’s qibla wall faces Makkah, and consider what it actually asks of you to turn your body mid-motion, in front of everyone you pray beside, the instant you learn you have been facing the wrong way. It is a small thing to think about and a much harder thing to do. You have been taught, perhaps since childhood, to finish what you start — to complete the rak’ah, to hold the position, to not make a visible disruption in front of a room full of people watching you move. The worshippers this guide has described, at Quba’ and at the mosque of Banu Salamah, did not have that luxury of composure. They were mid-ruku’, mid-sajdah, already immersed in an act that does not easily accommodate interruption, and they turned anyway, without waiting for the imam to explain himself, without asking a second witness to confirm the news, without embarrassment at the visible admission that they had, a moment before, been facing the wrong direction.

You might ask yourself, standing here, what your own equivalent of that moment would look like. Not a mosque and not a compass point, necessarily, but the everyday instances in which you learn, mid-course, that something you have been doing in good faith needs to change — a habit, a long-held opinion, a relationship, a plan you were already partway through executing. The instinct to finish what you started, to avoid the visible admission of error, to wait for more certainty before adjusting course, is a natural one. The lesson embedded in this episode is that sincerity sometimes looks like exactly the opposite of that instinct: an immediate, undefended turn, made in full view of others, the moment the truth becomes clear, without waiting for the turn to become comfortable first.

Consider, too, the sixteen months that came before the turn. You are not usually shown, in the retelling of dramatic moments, the long stretch of ordinary obedience that precedes them. The Prophet ﷺ prayed toward Jerusalem for well over a year, without complaint recorded in any hadith, while privately hoping — visibly enough that the Qur’an itself describes his face turning toward the sky — for a change that had not yet come. There is something worth sitting with in that patience: a willingness to keep doing what was asked, exactly as asked, for as long as it was asked, while still holding an honest hope that things might one day be different. Neither the patience nor the hope canceled the other out.

And consider the anxiety the Qur’an itself answers directly in verse 2:143 — the fear, voiced by an unnamed man in the reports preserved by Ibn Ishaq, that the believers who had died during those sixteen months, having prayed faithfully toward a direction that would later be changed, might have somehow prayed in vain. You may recognize something of that fear in your own life: a worry that time spent sincerely on something that later turned out to need correction was time wasted, love given to something that no longer holds, effort spent on a path since abandoned. The verse’s answer — never would Allah have caused you to lose your faith — is not only a historical reassurance to a specific community about a specific set of prayers. It is a standing answer to that same worry, wherever it recurs: sincerity offered in good faith, even toward a direction later corrected, is not lost.

You do not need to resolve, standing in this mosque, whether the ground beneath your feet is exactly where the verse was revealed. The uncertainty this guide has documented at length is real, and pretending otherwise would not make your reflection here more genuine. What you can carry from this place, regardless of exactly which patch of Madinah’s soil first received the command, is the shape of the response it produced: patient obedience, honest longing, and an immediate, undefended willingness to turn.

Practical Visitor Guide

Getting There

Masjid al-Qiblatayn stands on Khalid ibn al-Walid Road in the Banu Salamah district of northwest Madinah. Its exact distance from Masjid an-Nabawi is reported inconsistently across sources — VisitSaudi’s official tourism page gives approximately 3.8 kilometers, Saudipedia gives approximately 4 kilometers, Wikipedia gives approximately 5 kilometers, and ethnographic sources on the historic settlement of Banu Salamah place the tribal quarter as far as 7 kilometers northwest of the Prophet’s Mosque. You should expect the actual travel distance by road to fall somewhere within this range rather than plan around a single precise figure; taxis, ride-hailing apps, and organized ziyarah tour buses in Madinah all serve the site routinely, and it is a standard stop on most historical-sites itineraries, frequently bundled together with Masjid Quba’ and the wider Wadi al-Aqiq area in a single outing.

Opening Hours and Access

As of October 2025, a royal and ministerial directive under King Salman opened Masjid al-Qiblatayn for twenty-four-hour access, a change reflected in current Saudi tourism-authority guidance. This makes the mosque considerably more flexible to visit than sites with restricted hours, and you can plan a visit around prayer times, around cooler parts of the day, or around a quieter period outside of peak ziyarah traffic, without needing to work around a fixed opening and closing schedule.

What You Will See

The mosque you will walk into today is not a preserved seventh-century structure but a 1987 rebuild, commissioned under King Fahd and designed by the architect Abdel-Wahed El-Wakil, discussed at length in the architecture section of this guide. You will see a white-façaded building with two prominent domes and twin forty-metre minarets, a functioning mihrab facing Makkah in active use, and, on the opposite wall, a smaller, non-functional marker mihrab set beneath a false dome — a commemorative gesture toward the mosque’s historic two-mihrab identity rather than a surviving original structure. If you come expecting to see the actual niche where a seventh-century congregation is said to have prayed facing Jerusalem, you should recalibrate that expectation before you arrive: that specific structure was removed during the 1987 rebuild, and what stands in its place today was built new, decades after the event it commemorates.

Best Time to Visit

Early morning and the period around Fajr carry a particular resonance at this site, given that the sahih hadith accounts of the mid-prayer qiblah turning — whether at Quba’ or at the mosque of Banu Salamah — consistently describe the dawn prayer, not the popularly assumed midday Zuhr prayer. Visiting around Fajr, if your schedule and the broader logistics of your Madinah trip allow it, connects you more directly to what the strongest evidence actually documents, rather than to the popular but weaker Zuhr tradition. Beyond that consideration, Madinah’s cooler morning and evening hours are generally more comfortable for walking and standing outside than the middle of the day, particularly outside the winter months.

Etiquette

Dress modestly, as at any working mosque — this is an active place of prayer, not merely a historical monument, and it should be treated with the same respect you would extend to any mosque you enter to pray in. Keep your voice low inside the prayer hall, especially if worshippers are present and engaged in prayer. If you are visiting primarily for historical interest rather than to pray, be mindful of not disrupting those who have come specifically to worship.

Do and Do Not

  • Do treat the mosque first as a functioning place of worship, and only secondarily as a historical site.
  • Do take the time to actually locate and look at the marker mihrab on the Jerusalem-facing wall, understanding it as a commemorative modern addition rather than an original architectural survival.
  • Do combine your visit with Masjid Quba’, given the strong sahih evidence connecting Quba’ to the qiblah-change event.
  • Do not assume or repeat, while standing inside, that this exact spot is where 2:144 was revealed as though it were an established fact; hold the popular story with the same honesty this guide has tried to apply throughout.
  • Do not expect to see two functioning, original mihrabs; the historic Jerusalem-facing niche no longer exists in its original form.
  • Do not treat a visit to this site as carrying a specific, hadith-documented spiritual reward in the way that a visit to Masjid Quba’ does; no sahih hadith establishes such a virtue for this particular mosque.

Photography

General Saudi mosque-visiting norms apply: photography of the building’s exterior and interior architecture is broadly acceptable, but you should always be considerate of worshippers who may not wish to be photographed while praying, and should avoid any photography that could be seen as disruptive to those engaged in worship.

Accessibility

As a major, actively maintained Madinah mosque that has undergone a comprehensive modern rebuild, Masjid al-Qiblatayn is generally well-equipped with paved approaches and modern facilities compared to smaller historical sites; the surrounding redevelopment project discussed in the historical development section of this guide is reported to include substantial new parking capacity, which should further ease physical access for visitors arriving by car or bus once that project is complete.

Visiting With Children

The mosque’s relatively compact scale, twenty-four-hour accessibility, and straightforward, visually clear architectural story — one wall facing Makkah, a marker on the wall that once faced Jerusalem — make it a manageable and genuinely interesting stop for children learning about early Islamic history, particularly if paired with a simple, honest telling of the story that does not overstate the certainty of exactly where events occurred.

Common Mistakes Visitors Make

The most common mistake, discussed at length elsewhere in this guide, is treating the popular Umm Bishr narrative as though it were an authenticated, sahih-graded account on the same level as the Quba’ or Banu Salamah hadiths, rather than the isnad-less historical report it actually is. A second common mistake is assuming the mosque’s current mihrabs are original seventh-century structures rather than the product of a 1987 rebuild. A third is confusing this mosque with the entirely separate, similarly named Masjid al-Qiblatayn in Zeila, Somaliland — a partially ruined seventh-century mosque associated with the earliest Muslim migrants to Abyssinia, which also has a two-mihrab tradition attached to it, but which is a wholly distinct site on a different continent.

Common Misconceptions

Misconception: A Special Reward Attaches to Praying Here

No sahih hadith establishes any specific virtue or extra reward for praying at Masjid al-Qiblatayn, in contrast to the explicitly documented virtues attached to Masjid Quba’, where a hadith recorded in Sunan Ibn Majah and elsewhere states that a prayer offered there carries a reward equivalent to that of performing an ‘umrah. IslamQA’s fatwa on this mosque’s history concludes bluntly that visiting historically claimed sites of this kind is “not recommended,” regardless of the underlying report’s authenticity — a position that effectively also rejects any theory of special reward attached to this specific location.

Misconception: The Two Historic Mihrabs Are Still Visible

They are not, at least not in original form. The 1987 rebuild under King Fahd and architect Abdel-Wahed El-Wakil removed the original Jerusalem-facing mihrab and replaced it with a small decorative, non-functional marker mihrab set beneath a false dome — a modern gesture toward the site’s history, not a preserved original structure. Visitor confusion on this point is common, and some travel writing and visitor reviews describe “seeing the original two mihrabs,” language that is not architecturally accurate for the mosque as it has existed since 1987.

Misconception: The Qiblah Change Was Definitely Revealed at This Exact Site

This is the central claim this guide has been unable to confirm against sahih hadith evidence, as detailed at length in the sections above. The sahih hadiths point most explicitly to Masjid Quba’ (via Ibn ‘Umar’s narration, agreed upon by Bukhari and Muslim) and, separately, to the mosque of Banu Salamah during the Fajr prayer (via Anas ibn Malik’s narration in Sahih Muslim 527) — not to a Zuhr-prayer event at Umm Bishr’s house, which is the isnad-less historical tradition that actually explains the present mosque’s name and site identification. A visitor is well served by holding this popular attribution with real humility, rather than repeating it as though it carried the same evidentiary weight as an authenticated hadith.

Misconception: “Bukhari 41” Documents This Event

This citation error circulates in some popular and secondary literature discussing the qiblah change, but Sahih al-Bukhari 41 is, on direct verification, an unrelated hadith narrated by Abu Sa’id al-Khudri concerning the reward attached to affirming another’s sincere testimony of faith. It has no connection to the qiblah change whatsoever and should not be cited in connection with this mosque or this event.

Misconception: The Banu Salamah Account Is “Muslim 525” or “Muslim 526”

The Banu Salamah account, narrated by Anas ibn Malik, is correctly referenced as Sahih Muslim 527. Muslim 525 is al-Bara’ ibn ‘Azib’s general account of the qiblah change, which names no mosque at all; Muslim 526 is Ibn ‘Umar’s account naming Masjid Quba’ specifically. All three are authentic, sahih-graded hadiths, but they are three distinct narrations describing, in at least two cases, genuinely different events, and using their reference numbers interchangeably obscures rather than clarifies the historical record.

A Note on a Different Mosque With the Same Name

There is a second, entirely unrelated mosque also called Masjid al-Qiblatayn, located in Zeila, in present-day Somaliland — a partially ruined seventh-century structure associated with the earliest Muslim migrants to Abyssinia, which is also reputed to have had two mihrabs, one facing Makkah and one facing Jerusalem. This guide mentions it explicitly to prevent confusion between the two sites, which are sometimes conflated in online searches and casual references given their identical name and similar founding legend.

A Note on “Umrah Historical Sites” and Why This Mosque Draws Crowds Anyway

Even setting aside the evidentiary questions this guide has raised at length, Masjid al-Qiblatayn remains one of the most consistently visited Islamic heritage sites in Madinah, appearing on nearly every organized ziyarah itinerary and hop-on-hop-off historical tour of the city. Part of this popularity is simply architectural: the twin-dome, twin-minaret silhouette is visually striking and photographs well, giving it an appeal independent of the historical debate. Part of it is narrative convenience: a single, memorable, emotionally resonant story — a meal, a prayer, a sudden command from heaven — travels further in popular memory than a more accurate but more complicated account involving multiple mosques, multiple narrators, and an acknowledged classical discrepancy. This guide does not begrudge the mosque its popularity, and does not suggest visitors avoid it; it simply asks that the popularity be understood for what it is; a durable piece of Islamic heritage and Seerah-adjacent memory, resting on a foundation that is part strong hadith and part hedged historical tradition, rather than a single, uncomplicated fact.

Lesser-Known Facts

  • The correct sahih-hadith reference for the Banu Salamah account, narrated by Anas ibn Malik, is Sahih Muslim 527 — not the commonly cited 525 or 526, a small but persistent citation error in popular literature about this mosque.
  • The classical hadith master Ibn Hajar al-‘Asqalani himself flagged the discrepancy between the various reports on which prayer, and which mosque, were involved in the qiblah change — this is not a modern skeptical discovery but an acknowledged classical problem, recorded in his Fath al-Bari.
  • Al-Waqidi, the historian whose version of the Umm Bishr story Ibn Sa’d preserved and endorsed as “more sound in our view” despite transmitting it without an isnad, is a figure whose overall reliability as a narrator of hadith and historical reports was questioned by many classical hadith critics — a point of broader methodological caution worth keeping in mind when weighing any of his historical reports, including this one.
  • The Prophet’s ﷺ own attributed statement about the nearby Wadi al-Aqiq — that an angel came to him and told him to pray in that blessed valley — is a hadith recorded by al-Bukhari on the authority of ‘Umar ibn al-Khattab, tying the immediate geography surrounding Masjid al-Qiblatayn to a separate, well-authenticated prophetic event entirely unrelated to the qiblah change.
  • Abdel-Wahed El-Wakil, the architect behind the 1987 rebuild, was known to insist that his master craftsmen be publicly credited alongside him; when the Aga Khan Award jury initially resisted formally honoring his mason Ala-el-Din Moustafa alongside him for a separate project, El-Wakil wrote directly to Prince Karim Aga Khan to press the point.
  • Masjid al-Qiblatayn was reviewed and shortlisted for the Aga Khan Award for Architecture, but did not win it; El-Wakil won the award twice in his career, for two entirely different buildings — the Halawa, or Agamy Beach, House in 1980, and the Corniche Mosque in Jeddah in 1989.
  • The mosque’s design references, according to academic architectural documentation, draw on Mimar Sinan’s sixteenth-century Sokullu Mehmet Pasha Mosque in Istanbul and the medieval Ashrafiyya Mosque in Ta’iz, Yemen — a set of borrowings that situates a modern Madinah mosque within a much wider geography of historic Ottoman and Yemeni religious architecture.
  • El-Wakil is on record describing the modernist architect Le Corbusier as “the Hitler of architecture,” a characteristically blunt statement of his opposition to industrial modernism in mosque design.
  • There is a second, unrelated mosque of the same name in Zeila, Somaliland, dating to the seventh century and now partly in ruins, with its own separate two-mihrab tradition.

Timeline

  • Pre-Islamic era — No confirmed sacred-space use of the site, or of the Madinah oasis generally; Harry Munt’s academic study finds no evidence of pre-Islamic sacred status for Yathrib.
  • 1 AH / 622 CE — The Hijrah; the Prophet ﷺ begins praying toward Bait al-Maqdis, Jerusalem, in Madinah.
  • 2 AH / 623–624 CE — The original mosque is built in the Banu Salamah district, credited by later biographical sources to Sawad ibn Ghanam ibn Ka’b al-Ansari, using palm-trunk and palm-frond construction.
  • Rajab or Sha’ban, 2 AH / c. 624 CE, after roughly sixteen to seventeen months facing Jerusalem — Verse 2:144 is revealed, commanding the qiblah change to face the Ka’bah; the sahih hadiths place mid-prayer turning at Masjid Quba’ (Ibn ‘Umar, Fajr) and, separately, at the mosque of Banu Salamah (Anas, Fajr, one rak’ah already completed); a non-isnad historical report from Ibn Sa’d and al-Waqidi separately places a Zuhr-prayer version of the event at Umm Bishr’s house in Banu Salamah, the account that gives today’s mosque its popular name.
  • 87 AH / 706 CE — A renovation attributed to ‘Umar ibn ‘Abd al-‘Aziz during his governorship of Madinah, per Saudipedia; unverified against a primary source such as al-Samhudi’s Wafa’ al-Wafa.
  • ~1488 CE — A renovation attributed to a figure named Shahin al-Jamali, per Saudipedia.
  • Ottoman period, unspecified dates — General Ottoman-era attention to the site is plausible given the empire’s broader restoration practices across the Haramayn; a specific attribution to Suleiman the Magnificent or to Sultan Abdulmajid could not be verified against a primary or archival source.
  • 1350 AH / 1931 CE — Expansion under King ‘Abd al-‘Aziz Al Sa’ud to approximately 425 square metres, with a surrounding wall and a minaret added.
  • 1407–1408 AH / 1987 CE, possibly completed 1988 — A complete rebuild under King Fahd, designed by architect Abdel-Wahed El-Wakil; the northern, Jerusalem-facing mihrab is removed and replaced with a memorial marker.
  • Post-1987, undated — Further repairs referenced under King Abdullah.
  • October 2025 — A royal and ministerial directive under King Salman opens the mosque for twenty-four-hour access.
  • 2025–2026 — The Al-Qiblatayn Boulevard, or Cultural Center, redevelopment project is reported under way around the mosque, with figures for its scale drawn from project announcements and industry reporting rather than a single official government release.

Why “What Happened at Masjid al-Qiblatayn” Deserves a Careful Answer

Anyone searching for what happened at Masjid al-Qiblatayn deserves an answer that distinguishes clearly between what the sahih hadith literature actually documents and what popular memory has layered on top of it over the centuries. The honest answer, assembled from the evidence examined throughout this guide, is this: the Qur’anic command to change the qiblah, recorded in Surah al-Baqarah 2:144, was revealed at some point during the Prophet’s ﷺ Madinan residence, after a period of between roughly nine and eighteen months — most reliably sixteen to seventeen — spent praying toward Jerusalem; the sahih hadith corpus documents mid-prayer turning at Masjid Quba’ during Fajr, on the authority of Ibn ‘Umar, in a narration agreed upon by Bukhari and Muslim; a further sahih narration, from Anas ibn Malik, documents a mid-prayer turning at the mosque of Banu Salamah, also during Fajr; and the popular story of a Zuhr-prayer revelation at Umm Bishr’s house, which gives today’s mosque its name, rests on a historical report transmitted without an isnad, explicitly hedged by its own transmitter. A visitor or reader who holds all of this together, rather than collapsing it into the simplest version of the story, has arrived at an answer that respects both the strength of the sahih evidence and the real limits of what can be said with certainty about this particular plot of ground.

Key Lessons

Historical

The history of Masjid al-Qiblatayn, examined honestly, teaches a lesson about how popular memory and sahih hadith can diverge even on matters central to Islamic practice. The mosque’s fame rests on a specific narrative — a Zuhr prayer, a meal at Umm Bishr’s house, a mid-prayer command — that cannot be traced through a checkable chain of transmission, while the authenticated hadiths point elsewhere, to Quba’ and to a Fajr prayer at the mosque of Banu Salamah. This is not a modern skeptical imposition on the tradition; Ibn Hajar al-‘Asqalani himself, writing centuries ago as one of the most rigorous hadith critics in Islamic history, acknowledged the same discrepancy. Islamic history of Madinah is full of sites whose popular identification outran the documentary record that would strictly support it, and this mosque is a clear, well-documented example of that pattern.

Spiritual

The qiblah change itself, regardless of exactly where its first mid-prayer moment occurred, models an ideal of immediate, undefended obedience — a community that turned mid-motion, without waiting for further confirmation, the instant the truth reached them. It also models patience: sixteen months of faithful prayer toward a direction the Prophet ﷺ privately hoped would change, offered without complaint. And it offers a direct, textual reassurance, in verse 2:143, that sincere effort offered in good faith is never wasted, even when later circumstances require it to be corrected.

Personal

The distinction this guide has drawn, again and again, between what is authenticated and what is popularly believed, offers a personal discipline worth carrying beyond the study of this one mosque: the willingness to hold a beloved story honestly, acknowledging its weaknesses, without either discarding it out of a rigid literalism or repeating it uncritically out of attachment. Sincerity and accuracy are not in tension with each other; the tradition’s own greatest scholars, from Ibn Hajar to al-Tabari, modeled exactly this kind of honest handling of contested material.

Practical

For a Muslim navigating questions of prayer direction in ordinary daily life — determining the qiblah in an unfamiliar city, praying on an airplane, correcting a mistaken direction mid-prayer — the fiqh descended directly from this event provides real, usable guidance: sincere effort is sufficient where certainty is unavailable, correction should be immediate once the truth becomes clear, and a considerable degree of latitude is built into the law for those praying at a distance from Makkah.

A Final Word on Islamic Heritage and Honest Ziyarah

The wider category of Islamic heritage sites across Madinah and the Hijaz — Seerah locations tied to the Prophet’s ﷺ life, the lives of his companions, and the earliest years of the Muslim community — deserves the same standard of care this guide has tried to apply to Masjid al-Qiblatayn specifically. A ziyarah guide worth trusting should tell a visitor plainly which claims rest on Bukhari and Muslim, which rest on weaker or isnad-less historical reports, and which rest on nothing more than repeated popular assertion. This does not diminish the emotional or historical value of visiting these places; walking the ground associated, even loosely or through contested tradition, with the earliest Muslim community remains a meaningful act of remembrance. It simply means that remembrance and verification are not in conflict, and a visitor who holds both together — genuine reverence for the story, and genuine honesty about what can and cannot be proven — has understood this mosque, and the wider practice of ziyarah in Madinah, more completely than one who has only been given the simpler version.

Authentic Sources

Primary Islamic Sources

The hadith references in this guide were verified directly against sunnah.com’s Sahih al-Bukhari collection (hadiths 40, 41, 403, 4486, 4488, 4492, 5257, and 7251) and sunnah.com’s Sahih Muslim collection (hadiths 525, 526, and 527). Qur’anic citations follow Surah al-Baqarah 2:142–150 as rendered at Quran.com. Tafsir material draws on Tafsir al-Tabari and Tafsir Ibn Kathir. Ibn Hajar al-‘Asqalani’s Fath al-Bari and Ibn Sa’d’s al-Tabaqat al-Kubra are cited here as quoted within IslamQA fatwa #274076, rather than from a directly consulted primary edition. A caution is warranted regarding early sirah and maghazi literature more broadly: works such as Ibn Ishaq’s Sirah, al-Waqidi’s historical reports, and even al-Tabari’s historical (as opposed to exegetical) writing include material transmitted without the same isnad rigor applied to hadith proper, and reports drawn from them — including the Umm Bishr account discussed at length in this guide — should be understood as historical tradition rather than as hadith-graded fact.

Classical Scholars

This guide’s treatment of Ibn Qudamah’s al-Mughni, Ibn ‘Abd al-Barr’s al-Tamhid, and al-Nawawi’s Minhaj al-Talibin relies on their citation within modern fatwa literature — respectively IslamQA #85066 and #43504 for Ibn Qudamah, IslamQA #483121 for Ibn ‘Abd al-Barr, and the Mufti of the Federal Territory of Malaysia’s Irsyad al-Fatwa Series 227 for al-Nawawi — rather than from directly consulted primary editions of these works. Al-Samhudi’s Wafa’ al-Wafa bi-Akhbar Dar al-Mustafa, Ibn Shabbah’s Tarikh al-Madinah, Ibn Jubayr’s Rihlah, and Ibrahim Rif’at Pasha’s Mir’at al-Haramayn were not directly consulted in the preparation of this guide, and claims in the historical-development section that would ordinarily be checked against these sources — particularly the Umayyad- and Ottoman-period attributions — are flagged in the text as requiring further primary-source confirmation.

Modern Academic and Reference Sources

  • Harry Munt, The Holy City of Medina: Sacred Space in Early Islamic Arabia, Cambridge University Press, 2014 — Cambridge Core.
  • Saudipedia, “Al-Qiblatayn Mosque” — saudipedia.com.
  • Wikipedia, “Masjid al-Qiblatayn” — en.wikipedia.org.
  • Wikipedia, “Masjid al-Qiblatayn, Zeila” — en.wikipedia.org.
  • Madain Project, “Masjid al-Qiblatain (Medina)” — madainproject.com.
  • VisitSaudi, “Masjid al-Qiblatain in Madinah” — visitsaudi.com.
  • Archnet, Aga Khan Award Reviewed and Shortlisted Projects entry — archnet.org.
  • MIT DOME repository, El-Wakil and Qiblatayn design documentation — dome.mit.edu.
  • Wikipedia, “Abdel-Wahed El-Wakil” — en.wikipedia.org.
  • Muslim Heritage, biographical page on Abdel-Wahed El-Wakil — muslimheritage.com.
  • Ajel English, “Madinah’s Qiblatain Mosque Project Preserves Islamic Legacy” — english.ajel.sa.
  • Islam Question and Answer (IslamQA), fatwa #274076 on the mosque’s naming and history — islamqa.info.
  • Islam Question and Answer (IslamQA), fatwa #40 on mid-prayer qiblah correction — islamqa.info.
  • SeekersGuidance, “Is It Permissible to Pray in a Moving Vehicle? (Shafi’i)” — seekersguidance.org.
  • Yaqeen Institute, “The Switch of the Qiblah: Story of Masjid Qiblatayn” — yaqeeninstitute.org.

A Note on Method

This guide was built by verifying every hadith number against sunnah.com directly, rather than trusting secondary citations, and this process surfaced real errors in popular circulation — most notably the frequent mislabeling of the Banu Salamah narration as Muslim 525 or 526 rather than its correct reference, Muslim 527, and the occasional, unrelated citation of Bukhari 41 in connection with this event. Where a claim could not be verified against a primary or sufficiently authoritative secondary source — the precise construction statistics for the 1987 rebuild, the Ottoman-era restoration attributions, the etymology of “al-sufaha'” beyond al-Tabari’s general attribution, and any specific statement from Ibn Taymiyyah or al-Samhudi on this mosque by name — this guide has said so plainly, rather than filling the gap with invented specificity for the sake of a smoother narrative. Readers who wish to verify any claim independently are encouraged to follow the linked sources directly, and to treat any figure, date, or attribution not accompanied by a citation with the same caution this guide has tried to apply throughout its own research.

Frequently asked questions

Because a congregation there prayed toward two qiblas in a single prayer. The prayer began facing Jerusalem, and when word of the new revelation reached them, the worshippers turned to face the Kaaba in Makkah while still praying.

Around 4 km to the northwest, about a ten-minute drive. It is a standard stop on Madinah ziyarah routes, often combined with Masjid Quba and the Uhud sites in a single trip.

The rebuilt white-domed mosque has one grand mihrab facing Makkah, but its design preserves a subtle marker indicating the direction of the first qibla toward Jerusalem, so the story is still readable in the architecture.

Muslims first prayed toward Jerusalem. In the second year after the Hijra, Quranic revelation commanded the Prophet ﷺ to turn toward the Sacred Mosque in Makkah, giving the community its own distinct direction of worship centred on the Kaaba.

No. The mosque is free to enter, opens around the daily prayer times, and has separate prayer areas for men and women.