The claim we’re testing
A typical Muslim narrative goes like this: the earliest mosques don’t point at Mecca because the builders used the stars, and stars are rough. Close enough. Nothing to see here.
That excuse carries the whole argument. If it breaks, the excuse is gone. So let’s test it, slowly, like we’re explaining it to a five-year-old.
What this post covers
The claim we’re testing The early-mosque excuse is that builders used the stars and came close enough.
What is a compass bearing? A wall’s direction is just how far you turn from north, counted in degrees.
King’s folk directions King says early builders used ten fixed sky methods, not maps.
What the test did It asked whether 60 Petra-class walls hug King’s lines tighter than a spinning wheel.
The result The real walls sat a little farther from King’s lines than a random spin.
But that’s not fair to King Even with custom local sky signs, the method barely beats chance.
The one-target test The same walls sit 3.7 degrees from Petra, three times tighter than a spinning wheel.
Who ran this, honestly King didn’t run the test; the spinning-wheel number is our own math, and the wall figures are Gibson’s.
The escape hatch If the qibla was a real target, the early walls missed Mecca and hit somewhere else with precision.
The honest conclusion Something systematic was being aimed at; the star-method story does not explain it.
Questions the data raises If the walls faced Petra, the early switch story cannot explain them; the data still cannot close the question.
What is a compass bearing?
Stand in the middle of a clock. Twelve o’clock is north. Turn until you face something, like your house. How far you turned is your bearing. We count it in degrees: a full spin is 360. A quarter turn is 90. One degree is a tiny nudge.
Every mosque has a back wall, the qibla wall. Worshippers face it. That wall has a bearing. You can measure it today from satellite pictures, like checking which way a building’s front door faces.
What are King’s folk directions?
David King is a Western historian of Islamic astronomy. He’s the main scholar answering the claim that the first mosques faced Petra, a city in Jordan, instead of Mecca. King says the early builders didn’t use maps or math. They used folk astronomy: where the sun comes up in winter, where it goes down, where a bright southern star called Canopus rises.
So picture ten fixed lines drawn on a clock face, ten directions those old sky methods could give you. Those are King’s ten folk directions.

What did the test do?
It took 60 real early mosques whose walls line up on Petra, and asked one simple question: how close is each wall to the nearest of King’s ten lines?
The map shows the 31 of those 60 sites that can be placed.

Then it asked a second question: what if you didn’t use the sky at all? What if you just spun a wheel and drew a line wherever it stopped? How close would that random line sit to King’s lines?
If King is right, the real walls should hug his lines much tighter than a spinning wheel does. That’s the whole test.
The result
- Real mosque walls: 11.2 degrees from King’s nearest line, on average.
- A spinning wheel: 10.7 degrees.
The real walls didn’t hug King’s lines. They sat a little farther away than a random spin would. The “they used the stars” method lost to dumb luck.

But that’s not fair to King
Fair point, so we made it fairer. King doesn’t really say every town used the same ten lines. He says each region used its own sky signs, which change with how far north you are. So we gave each of the 31 mosques we could place on a map its own custom set: north, south, east and west, winter and summer sunrise and sunset for that exact spot, Canopus, and the directions of the Kaaba’s own walls. Then we checked how often the line to Petra lands within five and a half degrees of one of those.
- With the real Petra line: 45 percent of the sites.
- With a random line: 38 percent.
Even with every option handed to him, King barely beats chance. Folk astronomy can explain a few walls here and there. It can’t explain dozens of walls from different countries all pointing at one spot.

Now the one-target test
Same walls, one question: how far is each wall from Petra? On average, 3.7 degrees. That’s three times tighter than King’s lines, and three times tighter than the spinning wheel.
Random methods scatter. These walls don’t scatter. They point.

Who ran this, honestly
King didn’t run this test. The first comparison was done by William Schumm, a statistician who worked with Dan Gibson, the researcher behind the Petra theory, in Gibson’s 2023 book. The spinning-wheel number and the fairer custom test are our own math on Gibson’s published sites. Every wall measurement is Gibson’s, and nobody has re-measured the sites independently yet. King himself accepts Gibson’s measurements. He disputes only what the builders were aiming at.
The escape hatch
Here’s where the narrative goes next: “Fine, the walls are off, but the qibla was always just a rough direction. Close enough counts.”
Follow that through. The Quran tells believers to turn their faces toward the Sacred Mosque wherever they are, and the tradition says a congregation spun around in the middle of a prayer the moment they heard the qibla had changed. That’s not “roughly south.” That’s a target.
So which is it? If the target was precise, the earliest walls missed Mecca and hit somewhere else with precision. If it was always “close enough,” the command was never a real target, and the star excuse was never needed. Either way, the excuse that the builders used the stars and missed doesn’t survive the numbers.
The honest conclusion
The walls don’t scatter around folk sky-lines. They bunch toward one fixed point. Gibson’s clustering, and the 3.7-degree average, are the strongest signal for that.
Calling that point Petra is Gibson’s inference from the way the walls line up. The walls themselves don’t prove the name. Even King, the main scholar on the other side, takes Gibson’s numbers as given. The fight isn’t over the measurements. It’s over what they mean. The main gap is that nobody else has gone out and measured the walls again.
King’s method still survives as a maybe. The folk-astronomy manuals start around 850. The one early saying that ties the stars to the qibla, credited to the caliph Umar, has a broken chain. And even with every local option handed to him, the fit barely beats chance: the real line to Petra lands within five and a half degrees of one of his local sky signs at 45 percent of sites, against 38 percent for a random line.
But it does not win on the alignments either.
The honest conclusion: something systematic was being aimed at. The star-method story does not explain it. Whether that something was Petra or a mis-aimed Mecca is the question the measurements cannot yet close without an independent re-survey.
Questions the data raises
If those early walls really faced Petra, a hard question follows. The standard story says God told the community which way to face, and then corrected it. So how does a guided community miss a commanded direction from the start?
The story’s own answer is the switch: they first faced Jerusalem, then turned toward the Kaaba. But in that same story, the switch happens in Medina in the 620s, before the dated mosques we’re talking about. A change that already happened cannot explain walls built after it.
What this does not mean: it doesn’t disprove Islam, and it doesn’t disprove the Quran as a text. The qibla is a ritual practice, not a core creed. Later mosques do face Mecca. So the tradition as people have practiced it for most of its history is not what’s at stake.
The question stays open. The data could mean a different early sacred geography, which is Gibson’s reading. It could mean the community at first couldn’t find the target and later corrected it. Or it could be measurement error. That stays unresolved without an independent re-survey.
Notes (not for reading aloud)
- Schumm & Goldstein, in Dan Gibson, 2023 book, App. 3, pp. 322-327, Table 3 (p. 325): Petra-class n = 60; mean error to nearest of King’s 10 fixed directions 11.24 (SD 7.80); to Gibson’s target 3.69. King’s set: 0, 65, 90, 115, 155, 180, 245, 270, 295, 335. 180 alone fits ~49% of 88 sites (p. 323). Table prints N = 88 for subsets (likely typo).
- Random baseline 10.69 (exact) and custom folk test (45% vs 38% at 5.5 degrees; 74% vs 65% at 10, n = 31): our own computation, research-pool/briefs/2026-11-26-qibla-error-test.md S4. Not a published study.
- King: The Petra Fallacy (2018); Islamic Sacred Geography (2019); “the numbers speak for themselves” (on Gibson’s measurements), from research-pool debate card direction-of-prayer.md.
- Command: Quran 2:144, 2:149-150. Mid-prayer turn: Bukhari 403 (Ibn ‘Umar, Quba), 4486 (al-Bara’). “Between east and west is qibla”: Tirmidhi 342.
- Caveat: all azimuths and dates are Gibson’s; Schumm is on Gibson’s team; this tests King’s method, it does not by itself prove Petra.
- Quran 2:142-150 (the change of qibla, “turn your face toward the Sacred Mosque wherever you are”). Bukhari 399 and 4486 (the switch after 16 or 17 months facing Jerusalem).
- King, The Petra Fallacy (2018). Of Gibson’s figures he writes “They do indeed; the numbers speak for themselves”, praises their “commendable accuracy”, and disputes only the aim.
- Gibson counts a site as Petra-facing when Petra is the closest of his five candidate targets within 10 degrees, so part of the tight fit comes from how the sites were sorted.
Leave a Reply