The Star-Map Excuse Lost to a Spinning Wheel

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.

A round compass diagram with north at the top, labeled N 0, E 90, S 180 and W 270 degrees. Ten amber lines run out from the center at 0, 65, 90, 115, 155, 180, 245, 270, 295 and 335 degrees. Four faint grey dashed arrows labeled "random spin" point in other directions, and a small arc shows a quarter turn from north to east equals 90 degrees.
An illustration of a bearing: the number of degrees you turn clockwise from north. The ten amber lines are King’s ten fixed folk directions (0, 65, 90, 115, 155, 180, 245, 270, 295 and 335 degrees). The grey dashed arrows are made-up examples of random lines. This is an illustration, not data. King’s ten directions as listed in Schumm, in Dan Gibson, 2023 book, App. 3. The random arrows are examples only and were not measured from any mosque.

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.

A map from Algeria to Uzbekistan showing 31 dots for early mosque sites, most clustered in the Levant near Petra, with others in Algeria, Yemen, Oman, Iran and Central Asia. Petra is marked with a red star and Mecca with a white diamond. Orange dots are sites dated before 800 CE and blue dots are 800 to 899 CE. A boxed close-up enlarges the Levant. No bearing lines are drawn.
Locations of dated early mosques Gibson classes as Petra-facing; wall bearings not shown because they are not published per mosque. Coordinates and dates from Gibson 2023, App. B, as placed in our 2026-11-26 error test. 31 of the 60 Petra-class sites are shown (25 dated before 800 CE, 6 dated 800-899 CE). Left out: sites with a printed coordinate error (Kalyan, the Aleppo and Damascus entries), the Kaaba entry, sites dated after 912 CE, and the other 29 Petra-class sites that were not placed. Map outlines: Natural Earth.

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.

A bar chart with three bars. Real walls to the nearest of King's ten lines: 11.24 degrees. A random spin to the nearest of King's ten lines: 10.69 degrees, drawn with a dashed outline. Real walls to Gibson's target, Petra: 3.69 degrees, in orange and about a third the height of the first two.
Average distance in degrees from the nearest of King’s ten lines: the 60 Petra-class walls average 11.24 degrees off, and a random spin averages 10.69, so the walls are no closer to King’s lines than chance. The same walls average 3.69 degrees from Gibson’s single target, Petra. The random-spin figure is our own computation; Schumm works with Gibson, and all bearings are Gibson’s. Walls and Gibson’s target: Schumm, in Gibson 2023, App. 3, Table 3 (p. 325), n = 60 (the table prints N = 88 for the subsets, which looks like a typo). Random spin: our own computation, 2026-11-26, the exact average distance from a random bearing to the nearest of King’s ten directions.

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.

A bar chart of the fairer test on 31 placed sites. Two bars: 45% for Petra's real direction landing within 5.5 degrees of a folk line, and 38% for a random direction.
Our own fairer test of King’s site-specific folk directions on 31 placed sites. Petra’s real direction lands within 5.5 degrees of a folk line at 45% of sites, against 38% for a random direction. The fairer test is our computation, not a published study. Source: our own computation, 2026-11-26, n = 31 sites, using cardinal points, solstice sunrise and sunset, Canopus and Kaaba-axis directions at each site’s latitude. All bearings are Gibson’s.

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.

A two-part chart of the 60 Petra-class walls. A horizontal bar splits them: 68.3% within 5 degrees of Petra, 25.0% between 5 and 10, 6.7% between 10 and 12, none beyond 12. Below it, a bell curve centered near zero degrees with a dashed line at the mean of minus 0.95 degrees, labeled as the shape implied by the published mean and spread.
How far the 60 Petra-class walls sit from Petra, as published: 68.3% within 5 degrees, 93.3% within 10, none beyond 12 (the 25.0% and 6.7% middle shares come from subtraction). The curve is the shape implied by the published mean (-0.95 degrees) and spread (4.83), not individual walls. Source: Schumm and Goldstein, in Gibson 2023, ch. 3 (pp. 44-45, Tables 1-3), n = 60.

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.

Get the next argument by email.

One sourced argument on the Quran and early Islamic history, about once a week. Free. Unsubscribe anytime.

Leave a Reply