The Cave of Bani Haram (Ghar Bani Haram) on Jabal Sala’: History, Hadith and Honest Ziyarah Guide
On the western shoulder of Jabal Sala’, the low granite ridge that anchors the northwestern edge of historic Madinah, a natural hollow in the rock is known to local memory as Ghar Bani Haram — the Cave of Bani Haram — and, more often in Arabic sources, as Ghar al-Sajdah, the Cave of Prostration. It sits a short, steep climb above Masjid Bani Haram, the small mosque this guide treats in its own dedicated article, in the quarter once inhabited by the Banu Haram sub-clan of the Ansar. Pilgrims are told, in tour commentary, in devotional pamphlets and in a wide scatter of online write-ups, that this is where the Prophet ﷺ prayed during the digging of the Trench, or where he took shelter at night from the Confederate siege, or where he made a long prostration of gratitude on receiving news from the angel Jibril. Some accounts fold in still more: that he prostrated here for three days, that a spring beside the cave once ran with water he himself had caused to flow, that a dome and a mosque stood over the spot for well over a thousand years before being pulled down.
This guide states plainly, at the outset, what a reader deserves to know before climbing anything: the sahih hadith collections on the Battle of the Trench do not name a cave. Sahih al-Bukhari and Sahih Muslim preserve, in scrupulous detail, the digging in the cold, the stone bound against the Prophet’s ﷺ stomach from hunger, the miracle of the rock that broke into sand under his blow, the flashes of light and the promise of Syria, Persia and Abyssinia, the du’a invoked against the Confederates, and the wind that Allah sent to break the siege. None of these authentic reports places the Prophet ﷺ inside a specific cave on Jabal Sala’. The identification of this particular hollow in the rock as the site of his overnight shelter, or of his long prostration, rests on a different and thinner class of source — mursal and locally transmitted reports, classical topographical memory recorded centuries after the event, and traditions preserved by scholars such as al-Tabarani and al-Haythami whose chains this guide will name and grade rather than assume. This is not a small point of pedantry. It is the single fact a premium guide to Islamic history of Madinah must put before the reader first, because everything a visitor does at this site in 2026 — whether to climb it, whether to pray inside it, whether to treat it as a place of blessing — depends on understanding what kind of claim is actually being made about the ground beneath their feet.
What follows sets out, with as much precision as the sources allow, what can be said about the cave’s location and present condition; what the traditional identification consists of and on what authority it rests; the authentic material from the siege of the Trench that properly frames the site, quoted with full grading; the Qur’anic chapter — Surah al-Ahzab — that Allah revealed concerning this campaign; the related and better-attested hadith of Jabal Sala’ itself; and the devotional practice that has grown up around the cave, reported fairly and left, deliberately, for the reader to weigh. This guide’s companion articles on the Battle of the Trench, on Masjid Bani Haram, on Jabal Sala’, and on the Masajid al-Sab’ah (the Seven Mosques) cover, respectively, the campaign in full, the miracle of Jabir’s household, the mountain’s fuller history, and the cluster of small mosques on its western flank. This article does not repeat those accounts. It exists because the cave, though frequently bundled with all four in the itineraries of Madinah’s private guides, is a distinct place with its own — considerably more fragile — evidentiary basis, and it deserves to be treated with the same honesty this guide applies everywhere else.
Historical Background: Jabal Sala’ and Islamic History of the Bani Haram Quarter
Where the Cave Sits
Jabal Sala’ — transliterated variously as Sala’, Sila’, Sela’ or Thawab in the classical sources, and recorded under both names in Saudi Arabia’s own national heritage encyclopedia — is a compact, irregularly shaped granite outcrop standing in the northwestern quarter of Madinah, roughly seven hundred metres from Masjid an-Nabawi (the Saudi Ministry of Culture’s heritage encyclopedia entry on Jabal Sala’). The same official entry gives the mountain’s height as approximately eighty metres above the surrounding ground, a length of roughly one thousand metres, and a maximum width of about eight hundred and fifty metres — a squat, many-armed mass of ancient granite that the encyclopedia’s own description likens, in shape, to an octopus, with four principal ravines (shi’ab) radiating from a rocky core and two main flanks, eastern and western. The events of the Battle of the Trench, the same source states, unfolded specifically at its western foot (the Saudi heritage encyclopedia’s entry on Jabal Sala’). This guide’s dedicated article on Jabal Sala’ covers the mountain’s full history, geology and the wider cluster of Trench-era monuments on its slopes; what belongs here is simply that the Cave of Bani Haram sits within one of these ravines or hollows on the mountain’s western and northwestern side, close to the quarter once inhabited by the Banu Haram, a branch of the Ansari clan of Banu Salamah, and a short distance above the mosque that bears their name.
Multiple modern sources converge on a placement close behind, or above, Masjid Bani Haram, at approximately 24.474°N, 39.599°E, in the al-Fath district of the city, with the cave site itself recorded by online mapping listings at an address on Abdullah bin Nafi al-Sayegh Street (AtlasIslamica’s entry on the Cave of Bani Haram; Wanderlog’s listing for the Cave of Bani Haram). Distance estimates from Masjid an-Nabawi vary by source — Arabic-language accounts describe it as roughly eight hundred metres from the Prophet’s Mosque, while other listings suggest a slightly longer walking distance closer to a kilometre and a half depending on the route taken (Rawafid’s account of the cave’s location, roughly 800 metres from Masjid an-Nabawi). This guide’s article on Masjid Bani Haram records the mosque itself at approximately 24°28′23″N, 39°35′50″E, under two kilometres from the Prophet’s Mosque; the cave sits on the slope directly above or adjacent to that same mosque, reached by a short climb rather than a further walk.
The Banu Haram and the Pre-Islamic Landscape
This guide’s article on Masjid Bani Haram traces the fuller genealogy of the Banu Haram, a sub-clan of the Banu Salamah of the Khazraj, and the story of their most famous son, Jabir ibn Abdullah, whose father’s house stood in this same quarter and whose hospitality during the Trench produced one of the best-loved miracles of the seerah. What belongs here, briefly, is the geography that put both the mosque and the cave in this location at all: before Islam, the oasis of Yathrib was a patchwork of fortified clan quarters, and the Banu Salamah — including the Banu Haram — held ground toward the northwest of the settlement, between Wadi al-Aqiq and Jabal Sala’ itself, according to the Saudi heritage encyclopedia’s summary of the tribal geography (the Saudi heritage encyclopedia’s entry on Jabal Sala’). Other clans, including Juhaynah, Bali and Banu Ashja’, settled to the mountain’s south. When the Muslims came to dig a defensive trench across Madinah’s one seriously exposed flank in 5 AH, it was this same neighbourhood — homes, rock, ravines and all — that became the depth of the Muslim defensive position, with Jabal Sala’ itself serving, in the words of the same source, as “a fortified citadel protected by a trench difficult to cross,” each element reinforcing the other as a single line of defence for the city (the Saudi heritage encyclopedia’s entry on Jabal Sala’).
The Mountain’s Strategic Role in the Siege
The classical historians al-Waqidi and Ibn Ishaq, as preserved and summarised in the Saudi heritage encyclopedia’s own account, describe the Prophet ﷺ deliberately choosing his position with Sala’ at his back: riding out with a group of Muhajirun and Ansar to survey the ground, and settling on a position that placed the mountain directly behind the Muslim line, with the trench dug in front of it from al-Madhad to Dhubab to Ratij (the Saudi heritage encyclopedia, citing al-Waqidi’s al-Maghazi and Ibn Ishaq’s account via Ibn Hisham’s Sirah). Al-Waqidi’s own words, as preserved in the encyclopedia entry, record that “when he finished digging the trench, he settled behind Sala’, placing it behind him and the trench before him,” pitching a leather command tent near the uppermost mosque at the foot of the mountain — the position remembered today by Masjid al-Fath, discussed at length in this guide’s article on the Masajid al-Sab’ah. The mountain’s ravines and slopes, the encyclopedia notes, gave the defenders shelter from the bitter wind that battered the Confederate camp, screened the army’s rear from any treachery by the Jewish clan of Banu Qurayza to the south, and supplied stone that the Muslims used both defensively, in the earthworks raised from the trench’s spoil, and as a simple projectile weapon against parties who tried to force a crossing (the Saudi heritage encyclopedia’s entry on Jabal Sala’). This wider strategic picture is the proper subject of this guide’s article on the Battle of the Trench; it is recalled here only because it explains why a cave in this particular mountain, at this particular height above the command position, entered the collective memory of the campaign at all.
The Story Behind the Place: The Traditional Identification of the Cave
Two Distinct Traditions, Not One
Readers researching this cave will quickly notice that its story is told in at least two versions that are often blended together but rest on different grounds. The first and better-attested tradition concerns lodging: that during the anxious nights of the siege, companions who feared for the Prophet’s ﷺ safety brought him into a cave on Jabal Sala’ to sleep, away from the exposed front line along the trench, and that he would descend again each morning. The second tradition concerns a single extraordinary episode of worship: that the companion Mu’adh ibn Jabal, searching for the Prophet ﷺ one night, found him prostrated for so long in a cave that he feared he had died, and that on rising the Prophet ﷺ explained that Jibril had brought him a promise from Allah regarding the fate of his community — news that occasioned a prostration of gratitude. A visitor told simply that “the Prophet ﷺ prayed here during the Trench” is usually being given a compressed, undifferentiated version of both stories at once. This guide separates them and grades each on its own terms.
The Lodging Tradition: Talha ibn Kharash’s Report
The tradition of nightly lodging is preserved by the companion-generation transmitter Talha ibn Kharash and recorded in the Saudi Ministry of Culture’s own heritage encyclopedia in these words: “During the days of the Trench they would take the Messenger of Allah ﷺ out, fearing an attack by night, and bring him into the Cave of Bani Haram, where he would spend the night; then, when morning came, he would come down” (the Saudi heritage encyclopedia’s entry on Jabal Sala’, preserving the report of Talha ibn Kharash). The encyclopedia entry cites this report without reproducing a full isnad or grading it explicitly, drawing instead on the classical narrative historians — al-Waqidi’s al-Maghazi, al-Salihi’s Subul al-Huda wa’l-Rashad, Ibn Hisham’s recension of the Sirah, and al-Bayhaqi’s Dala’il al-Nubuwwah — as its documentary basis. This places the report squarely in the category of sirah literature rather than the sahih hadith canon: a real and old strand of historical memory, transmitted by named scholars across centuries, but not a report that appears in Sahih al-Bukhari, Sahih Muslim, or the four Sunan with a chain graded sahih or hasan by the classical critics. Readers of this guide’s article on the Battle of the Trench will already be alert to this distinction, since al-Waqidi in particular is a source this guide treats with caution throughout, valuable as a narrative historian but weaker, by the assessment of hadith critics such as al-Bukhari and Ahmad ibn Hanbal, than the authors of the sound hadith collections.
A note on authenticity: the lodging tradition is old, geographically specific, and consistent with the plain military logic of the siege — a commander sheltered at night away from an exposed perimeter is unremarkable and expected. But it survives in the sirah and topographical literature, not in the sahih hadith corpus, and no source consulted for this guide supplies a scholar’s explicit isnad grading for Talha ibn Kharash’s report. It should be told, and is worth telling, but it should not be presented to a visitor as equivalent in strength to Sahih al-Bukhari 4101 or Sahih al-Bukhari 4115, quoted below.
The Prostration Tradition: Mu’adh ibn Jabal and the Report of Abu Qatadah
The second and more dramatic tradition is the one that gives the site its most common Arabic name, Ghar al-Sajdah, the Cave of Prostration. It is preserved, on the authority of the companion Abu Qatadah, in a report transmitted by al-Tabarani and reproduced by the later hadith compiler al-Haythami in his Majma’ al-Zawa’id, the classical compendium that gathers hadith from the “additional” collections of al-Tabarani, Ahmad, al-Bazzar and others not found in the six canonical books, together with al-Haythami’s own assessment of each report’s reliability. As preserved by IslamicLandmarks.com’s rendering of the report, Mu’adh ibn Jabal went looking for the Prophet ﷺ, was told he could be found on a high point of the mountain sometimes called Mount Thawab — one of the alternative names recorded for Jabal Sala’ itself — and there found him in a prostration so prolonged that Mu’adh feared he had died. On raising his head, the Prophet ﷺ explained: “Jibril came to me and said: ‘Allah, Blessed and Exalted is He, gives you His salam and says to you: How would you like Me to treat your community?’ I said: ‘Allah knows best.’ So he went, then returned, saying: ‘He says to you: I shall never distress you on account of your community.’ So I prostrated myself, for the best that a slave can do to draw nearer to Allah is prostration” (IslamicLandmarks.com’s entry on the Cave of Bani Haram, quoting al-Haythami’s Majma’ al-Zawa’id; AtlasIslamica’s parallel rendering of the same report, on the authority of Abu Qatadah).
A note on authenticity: this is a genuinely moving report, and this guide tells it because a premium guide does not quietly drop a story simply because it is not of the highest grade — but its standing must be stated honestly. It survives via al-Tabarani, outside the six canonical hadith collections, in a chain al-Haythami himself was compiling precisely because such reports required separate critical assessment; no source available to this guide reproduces al-Haythami’s specific verdict on this particular chain, and no reference consulted here locates the report in Sahih al-Bukhari, Sahih Muslim, or the Sunan with a grading of sahih or hasan by Nasa’i, Abu Dawud, al-Tirmidhi or Ibn Majah’s editors. Some retellings additionally claim the prostration lasted three days and nights, a detail this guide has not found supported in the base report itself and treats as an embellishment layered on afterward rather than part of the original narration (AtlasIslamica’s entry on the Cave of Bani Haram). Readers should hold the emotional power of the story and its evidentiary weight as two separate questions, exactly as this guide’s companion article on Masjid Bani Haram does for the miracle of Jabir’s household.
The Spring, Its Disappearance, and a Third Layer of Local Memory
A third element commonly attached to the site is a spring, called in some sources Ayn ibn Sahl or simply al-Uyayna, said to lie close to the cave and to have been struck or dug by the Prophet ﷺ himself, who is reported in local tradition to have performed wudu’ from its water during the days of the Trench (Rawafid’s account of the cave and the nearby spring). One historian’s field account, delivered on camera at the site itself, states that the watercourse leading to the spring remained visible into recent decades even after the spring’s own water had stopped flowing, though by the time of that same account the spring itself was already “merely a mention in the books of history,” with neither trace nor water remaining (a Madinah historical-landmarks video featuring historian Sheikh Muhammad Abd al-Wahhab al-Abbasi at the cave site). This detail, like the lodging tradition, belongs to the sirah and local-history register rather than to the sahih hadith corpus, and this guide has found no isnad offered for it in any source consulted. It is reported here as part of the honest local memory attached to the cave, not as an authenticated fact.
Historical Development: From Umar ibn Abd al-Aziz’s Dome to Demolition
The Umayyad Governor Who Marked the Site
The single most concrete and well-attested fact in the cave’s later architectural history concerns the caliph Umar ibn Abd al-Aziz, who served as governor of Madinah under the Umayyads before his own caliphate (99–101 AH / 717–720 CE) and who was noted, in more than one source on the city’s mosques, for systematically tracing and marking the locations associated with the Prophet’s ﷺ prayers. Reporting on the site in 2017, the Egyptian outlet Masrawy states plainly that “the caliph Umar ibn Abd al-Aziz, may Allah be pleased with him, built over it a dome and a mosque on the spot of the Prophet’s ﷺ prayer, when he was governor of Madinah before becoming caliph,” and that subsequent caliphs maintained the structure “down to the era of the Ottoman state” (Masrawy’s report on a visit to Ghar al-Sajdah in Madinah). A separate Arabic-language video account situates the mosque historically as well, noting that Ibn Shabbah — the ninth-century historian of Madinah whose Ta’rikh al-Madinah al-Munawwarah is among the earliest specialised sources on the city’s sacred topography — recorded the cave among the sites where the Prophet ﷺ prayed, and further states that it was among the spots Umar ibn Abd al-Aziz identified and built upon during his governorship (the Madinah landmarks video citing Ibn Shabbah’s history). This guide has not been able to locate or verify the specific passage of Ibn Shabbah’s history in question, and reports the claim as attributed to that source rather than as independently confirmed against the primary text.
A Structure Maintained for Roughly a Millennium, Then Removed
What is reported with some consistency across Arabic-language sources is that a dome and small mosque stood over the site of the Prophet’s ﷺ prayer at the cave for a very long span of Islamic history — from the Umayyad period, through subsequent dynasties, into Ottoman rule — before being demolished in the modern era. Masrawy’s account states the demolition occurred “recently” relative to its 2017 publication date and gives the stated justification directly: the structure was removed “on the grounds that it was a means to shirk” (Masrawy’s report on Ghar al-Sajdah). This is consistent with the broader, well-documented pattern of twentieth-century Saudi religious policy toward domes, shrines and built structures raised over sites associated with the Prophet ﷺ, companions, or specific historical events — a policy this guide’s other articles on Jannat al-Baqi and the graves of the Uhud martyrs discuss at greater length, and which rests on the same juristic reasoning, associated with the Hanbali tradition and with Ibn Taymiyyah in particular, that building over graves and prayer-sites risks encouraging their veneration as objects of worship in themselves. This guide has not located an official Saudi government statement, dated demolition record, or academic architectural history that independently confirms the year of the cave-side structure’s removal, and treats the Masrawy account — a single Arabic press report — as the best available but unverified source for this specific claim. No English-language academic source consulted for this article corroborates or contradicts the demolition account in any further detail.
The Site Within the Wider Seven Mosques and Trench Landmark Cluster
The Saudi government’s own Madinah visitor portal lists the Cave of Bani Haram as the fourth of six named landmarks remaining from the Trench era, described succinctly as “the cave in which the Messenger, blessings and peace be upon him, slept over a few nights during the Battle of the Trench,” alongside al-Raya Mosque and Hill, Masjid Bani Haram itself, and the other members of the Seven Mosques cluster this guide covers in its dedicated article (the official Visit Madinah portal’s entry on the Trench landmarks, including the Cave of Bani Haram). The same portal states that the trench itself “has disappeared long ago” and that “only some traces of monuments that are saturated with meanings” remain across the wider site — an honest official framing that this guide’s readers should keep in mind when weighing the more elaborate claims made about the cave by individual guides and tour operators.
The Prophet ﷺ and This Place: The Authentic Material of the Trench
Whatever one concludes about the cave’s own specific identification, the campaign that gives it its context — the Battle of the Trench, or Ghazwat al-Khandaq, fought in Shawwal of 5 AH — is documented in the sahih hadith literature with unusual richness. This guide’s dedicated article on the Battle of the Trench narrates the siege in full: the arrival of a Confederate force of several thousand men drawn from the Quraysh, the Ghatafan, and other allied tribes; the adoption, on Salman al-Farisi’s advice, of the trench itself as a defensive innovation new to Arabian warfare; the roughly two-week standoff; and the eventual collapse of the siege. What belongs here is the authentic material that bears most directly on this cave’s own claimed setting — the digging, the hunger, the rock, the du’a, and the wind — quoted properly, with grading, and not repeated at the length the fuller article gives them.
The Digging in Cold and Hunger
The physical conditions of the dig are recorded across several sahih narrations, most vividly in the hadith of Jabir ibn Abdullah that this guide’s article on Masjid Bani Haram quotes in full. There, Jabir recalls seeing the Prophet ﷺ “in a state that I cannot bear,” with a stone bound against his stomach, because — in Jabir’s own words — “we had not eaten anything for three days” (Sahih al-Bukhari 4101). The detail of the bound stone recurs in the parallel narration at Sahih al-Bukhari 4102 and again in Sahih Muslim 2039, all graded sahih without dispute among the scholars of hadith. This guide’s article on Masjid Bani Haram tells the fuller story of the miracle of the food that followed at Jabir’s household that same evening — barley and a young goat multiplied to feed, by the hadith’s own account, “about a thousand men” — and readers wanting that narrative in full, together with the biography of Jabir ibn Abdullah himself, should turn there. What matters for the cave is simply the physical and emotional register the hadith establishes for the whole campaign: an army digging on empty stomachs, in the raw weather of a Madinan winter month, with hunger severe enough that a stone bound to the abdomen was a normal expedient rather than an isolated detail.
The Miracle of the Rock: Sunan al-Nasa’i 3176
A second and separate account of a rock obstructing the dig — distinct from the boulder Jabir describes the Prophet ﷺ striking near his own section of the trench — is preserved by al-Nasa’i on the authority of a companion transmitted through Abu Sukaynah, one of the freedmen who fought alongside the Muslims. The report describes a rock that halted the digging entirely, until the Prophet ﷺ himself came down, took up a pickaxe, set aside his outer garment, and struck it three times, each blow accompanied by the recitation of a Qur’anic phrase and each followed by a flash of light that the companion Salman al-Farisi witnessed directly:
“When the Prophet ﷺ commanded them to dig the trench, a rock appeared that blocked them from digging. The Messenger of Allah ﷺ stood, picked up the pickaxe, placed his outer garment at the edge of the trench, and said: ‘And the word of your Lord has been fulfilled in truth and in justice; none can change His words, and He is the All-Hearing, the All-Knowing’ [Qur’an 6:115]. A third of the rock broke away, and Salman al-Farisi, standing and watching, saw a flash of light accompany the Prophet’s ﷺ blow. He struck it a second time, repeating the same words, and another third broke away with another flash, which Salman saw. He struck a third time, repeating the same words again, and the last third fell away. The Messenger of Allah ﷺ came out, took up his garment, and sat down. Salman said: ‘O Messenger of Allah, every time you struck, I saw a flash of light with it.’ The Prophet ﷺ said to him: ‘O Salman, did you see that?’ He said: ‘Yes, by the One Who sent you with the truth, O Messenger of Allah.’ He said: ‘When I struck the first blow, the cities of Kisra [the Persian emperor] and what lies around them were shown to me, and I saw them with my own eyes.’ Those present asked him to pray that Allah would grant them these lands as spoils, and he prayed for that. ‘Then I struck the second blow, and the cities of Caesar and what lies around them were shown to me, and I saw them with my own eyes,’ and again they asked him to pray for victory over them, and he did. ‘Then I struck the third time, and the cities of Abyssinia and the villages around them were shown to me, and I saw them with my own eyes.’ But the Messenger of Allah ﷺ said at that point: ‘Leave the Abyssinians alone so long as they leave you alone, and leave the Turks alone so long as they leave you alone.'”
This report is recorded as Sunan al-Nasa’i 3176, and is graded Hasan by the Darussalam annotators of the printed edition. The report is significant not only for the miracle of the rock itself but for the geopolitical promise it carries: the vision of the Persian and Byzantine capitals, understood by the classical commentators as a foretelling of the great conquests that would follow the Prophet’s ﷺ death within a generation, together with the caution — “leave the Abyssinians alone… leave the Turks alone” — that tempered even a promise of future conquest with restraint toward two peoples the Prophet ﷺ named specifically. Some later retellings compress this report with the separate hadith of Jabir’s rock, or attach the flashes-of-light episode to the cave itself as though the Prophet’s ﷺ overnight lodging and the striking of the rock occurred in the same location; the sources consulted for this guide do not support that conflation, and the Nasa’i report as transmitted makes no mention of a cave at all.
The Du’a Against the Confederates: Sahih al-Bukhari 4115 and Sahih Muslim 1742
As the siege dragged on, the Prophet ﷺ is recorded, on the authority of the companion Abdullah ibn Abi Aufa, invoking Allah directly against the besieging armies. The shorter and more frequently quoted version reads:
“Allah’s Messenger ﷺ invoked evil upon the clans, saying: ‘O Allah, Revealer of the Book, Swift in reckoning, defeat the clans. O Allah, defeat them and shake them.'”
This is recorded as Sahih al-Bukhari 4115. A related and longer account, transmitted by the same companion in a letter he wrote many years later to Umar ibn Ubaydullah as the latter marched against the Kharijite rebels at Harura, sets the du’a in its fuller battlefield context — the Prophet ﷺ first addressing his men directly, urging patience and reminding them that “Paradise is under the shadow of swords,” before standing again to pray:
“O Allah, Revealer of the Book, Disperser of the clouds, Defeater of the Confederates, put our enemy to rout and grant us victory over them.”
This longer account is preserved as Sahih Muslim 1742. Between the two versions the wording of the du’a itself varies slightly — “shake them” in Bukhari’s rendering, “Disperser of the clouds” and “grant us victory” in Muslim’s — the kind of minor variation expected of a single core invocation transmitted across multiple chains from the same companion over decades, and neither variant is disputed as to its essential authenticity. Both narrations are anchored to the same reporter, Abdullah ibn Abi Aufa, one of the relatively few surviving companions in later decades who could speak to the day-to-day texture of the siege from firsthand memory.
The Wind That Broke the Siege: Qur’an 33:9
The most decisive single event of the campaign — more decisive, in the Qur’an’s own telling, than any exchange of arrows across the trench — was a storm. Allah describes it directly in Surah al-Ahzab:
﴿ يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ ٱذْكُرُوا۟ نِعْمَةَ ٱللَّهِ عَلَيْكُمْ إِذْ جَآءَتْكُمْ جُنُودٌۭ فَأَرْسَلْنَا عَلَيْهِمْ رِيحًۭا وَجُنُودًۭا لَّمْ تَرَوْهَا ۚ وَكَانَ ٱللَّهُ بِمَا تَعْمَلُونَ بَصِيرًۭا ﴾
“O you who believe, remember the favour of Allah upon you when armies came to besiege you, and We sent against them a wind and forces you did not see. And Allah is All-Seeing of what you do” (Qur’an, Surah al-Ahzab 33:9). Classical and contemporary tafsir alike take “forces you did not see” to mean angelic reinforcement accompanying the storm, and the storm itself — a bitter, sustained wind that overturned Confederate tents, extinguished their cooking fires, and blew sand into the eyes and food of the besieging army — is the natural event that, combined with worsening morale, division among the Confederate tribes, and the failure to break the Muslim line, brought the siege to an end without a pitched battle. This guide’s article on the Battle of the Trench treats the closing days of the siege and the Confederate withdrawal at fuller length; the point that belongs here is simply that the mountain behind which the Muslims sheltered — the same Jabal Sala’ whose slope holds this cave — is recorded, in the same regional geography, as having sheltered the defenders from the very wind that undid their enemies, a detail preserved in the Saudi heritage encyclopedia’s account of the mountain’s strategic role during the siege (the Saudi heritage encyclopedia’s entry on Jabal Sala’).
Qur’anic Connections: Surah al-Ahzab and the Trial of the Trench
The Passage as a Whole
Surah al-Ahzab — “The Confederates,” the thirty-third chapter of the Qur’an — takes its name directly from this campaign, and verses 9 through 27 form a single connected passage revealed, according to the classical exegetes, at or shortly after the end of the siege, reviewing the episode from the vantage point of its conclusion rather than narrating it as it unfolded (Islamicstudies.info’s presentation of Mawdudi’s introduction to Surah al-Ahzab, verses 9–27). The passage opens, as quoted above, with the reminder of Allah’s favour in sending the wind and unseen forces (33:9), then turns to the psychological extremity of the siege itself:
﴿ إِذْ جَآءُوكُم مِّن فَوْقِكُمْ وَمِنْ أَسْفَلَ مِنكُمْ وَإِذْ زَاغَتِ ٱلْأَبْصَـٰرُ وَبَلَغَتِ ٱلْقُلُوبُ ٱلْحَنَاجِرَ وَتَظُنُّونَ بِٱللَّهِ ٱلظُّنُونَا۠ ﴾
“˹Remember˺ when they came at you from above and from below you, and when your eyes grew wild ˹in horror˺ and your hearts reached your throats, and you entertained ˹conflicting˺ thoughts about Allah” (Qur’an 33:10). The imagery — eyes darting in every direction, hearts rising into the throat — is among the most physically vivid descriptions of collective fear anywhere in the Qur’an, and the classical commentators, including al-Tabari and Ibn Kathir, connect it directly to the moment the Confederate armies encircled Madinah from multiple directions at once: the Quraysh and their allies from the direction of Makkah below the city, and the Ghatafan and the tribes of Najd from above, compounding the psychological pressure of a siege with the geometry of encirclement itself.
The Trial of the Believers and the Speech of the Hypocrites
The Qur’an then names the test directly:
﴿ هُنَالِكَ ٱبْتُلِىَ ٱلْمُؤْمِنُونَ وَزُلْزِلُوا۟ زِلْزَالًۭا شَدِيدًۭا ﴾
“Then and there the believers were put to the test, and were violently shaken” (Qur’an 33:11). What follows is a passage of unusual candour about the community’s own internal fractures under pressure — not only the discipline of the sincere believers but the wavering of those whose faith was shallow or feigned:
﴿ وَإِذْ يَقُولُ ٱلْمُنَـٰفِقُونَ وَٱلَّذِينَ فِى قُلُوبِهِم مَّرَضٌۭ مَّا وَعَدَنَا ٱللَّهُ وَرَسُولُهُۥٓ إِلَّا غُرُورًۭا ﴾
“And ˹remember˺ when the hypocrites and those with sickness in their hearts said, ‘Allah and His Messenger have promised us nothing but delusion'” (Qur’an 33:12), followed immediately by the request of a faction among them to abandon the defensive line altogether:
﴿ وَإِذْ قَالَت طَّآئِفَةٌۭ مِّنْهُمْ يَـٰٓأَهْلَ يَثْرِبَ لَا مُقَامَ لَكُمْ فَٱرْجِعُوا۟ ۚ وَيَسْتَـْٔذِنُ فَرِيقٌۭ مِّنْهُمُ ٱلنَّبِىَّ يَقُولُونَ إِنَّ بُيُوتَنَا عَوْرَةٌۭ وَمَا هِىَ بِعَوْرَةٍ ۖ إِن يُرِيدُونَ إِلَّا فِرَارًۭا ﴾
“And ˹remember˺ when a group of them said, ‘O people of Yathrib, there is no stand to be made here, so retreat,’ and another group of them sought the Prophet’s permission ˹to leave˺, saying, ‘Our homes are exposed,’ when they were not exposed — they only wanted to flee” (Qur’an 33:13). Ibn Kathir’s tafsir, in line with the wider classical reading, identifies these speakers as the party of Madinan hypocrites associated with Abdullah ibn Ubayy, using the emergency of the siege as a pretext to abandon the defensive line and, by claiming their homes lay exposed to raiders when in fact they did not, to desert under the cover of a plausible excuse.
The Contrast: The Believers’ Response
Against this candid account of wavering and desertion, the passage sets the response of the sincere believers in one of the Qur’an’s most quoted verses on steadfastness under trial:
﴿ وَلَمَّا رَءَا ٱلْمُؤْمِنُونَ ٱلْأَحْزَابَ قَالُوا۟ هَـٰذَا مَا وَعَدَنَا ٱللَّهُ وَرَسُولُهُۥ وَصَدَقَ ٱللَّهُ وَرَسُولُهُۥ ۚ وَمَا زَادَهُمْ إِلَّآ إِيمَـٰنًۭا وَتَسْلِيمًۭا ﴾
“When the believers saw the Confederates, they said, ‘This is what Allah and His Messenger promised us, and Allah and His Messenger have spoken truly’ — and it increased them only in faith and submission” (Qur’an 33:22). The classical exegetes read this verse against the memory of Allah’s earlier promises of eventual difficulty before ease, understanding the believers’ response — greeting the very sight of an overwhelming besieging force with confirmation of faith rather than despair — as the passage’s central moral lesson, and one directly relevant to the campaign’s larger meaning: that hardship of this kind was itself foretold, and endurance under it a form of confirmation rather than contradiction of the promise.
Reading the Passage Today
Verses 23 through 27 close the account by naming individual steadfastness — “among the believers are men who have been true to what they pledged to Allah” — and by describing the eventual outcome: the Confederate retreat, and the subsequent reckoning with the Banu Qurayza, the Jewish clan whose conduct during the siege is treated in full in this guide’s article on the Battle of the Trench rather than here. What this Qur’anic frame contributes specifically to the story of the cave is a caution rather than a confirmation. Surah al-Ahzab describes fear, division, the wind, and the believers’ endurance in vivid and specific terms. It does not describe a cave, a prostration, or an overnight shelter on Jabal Sala’. The absence is not proof that such things did not happen — the Qur’an narrates selectively, and any number of true events from the Prophet’s ﷺ life go unmentioned in its verses — but it does mean that the cave’s identification cannot be argued from the Qur’anic text itself, only from the separate historical and hadith material already discussed above.
Jabal Sala’ in the Hadith: The Prayer for Rain
This guide’s dedicated article on Jabal Sala’ treats the mountain’s full history, its several names, and its place in the wider topography of Trench-era Madinah; readers wanting that fuller picture should turn there. One hadith bearing directly on the mountain deserves to be quoted here in full, because it is authentic, beautiful, and inseparable from the same skyline the cave overlooks. Anas ibn Malik narrates that during a period of drought, a man interrupted the Prophet’s ﷺ Friday sermon to ask him to pray for rain:
“A man entered the mosque on a Friday, through the door facing the pulpit, while the Messenger of Allah ﷺ was standing delivering the sermon. He stood facing the Messenger of Allah ﷺ and said: ‘O Messenger of Allah, the livestock have perished and the roads are cut off; pray to Allah to send us rain.’ So the Messenger of Allah ﷺ raised his hands and said: ‘O Allah, send us rain. O Allah, send us rain. O Allah, send us rain.’ By Allah, we did not see any trace of cloud in the sky, and there was no house or building between us and Sala’. Then a cloud like a shield rose up from behind it, and when it reached the middle of the sky it spread out, and then it rained. By Allah, we did not see the sun for a week.”
The following Friday, Anas continues, the same man — or one very like him — returned to ask the opposite favour, since the continuing rain had begun to disrupt travel and daily life, and the Prophet ﷺ raised his hands a second time: “O Allah, around us and not upon us. O Allah, upon the hills, the mountains, the hillocks, the valleys, and the places where trees grow” — and the rain stopped at once, so that the congregation walked out of the mosque in open sunshine. This account is recorded as Sahih al-Bukhari 1013 and, in close parallel, as Sahih Muslim 897, both graded sahih without dispute. Both versions explicitly name Sala’ as the point behind which the rain cloud first appeared — “there was no house or building between us and Sila’… a cloud rose up from behind it” — making Jabal Sala’ not merely a battlefield landmark but the visible backdrop against which one of the most vivid and specific answered-prayer narrations in the entire hadith corpus took place. Anas’s testimony that the household of Madinah could see clean to the base of the mountain, with no buildings obstructing the view, is itself a small but telling detail about the size and density of the city in his lifetime, worth pausing over precisely because it is a topographical detail preserved almost by accident within a hadith principally about something else.
Historical Development: Rashidun to Modern Saudi Era
What Can and Cannot Be Traced
The cave’s documented history, unlike that of Masjid Bani Haram or the wider Seven Mosques cluster, is thin in the period between the earliest sirah reports and the Umayyad governorship of Umar ibn Abd al-Aziz. No source consulted for this guide places a specific Rashidun-era structure or marker at the cave itself, though the wider mountain and its slopes remained militarily and devotionally significant to the young Muslim community throughout this period as living memory of the siege. The clearest thread, as set out above, runs from Umar ibn Abd al-Aziz’s governorship (roughly 87–93 AH as governor, before his caliphate of 99–101 AH), through an unspecified span of continuous maintenance by subsequent dynasties — Masrawy’s account speaks broadly of “the caliphs after him, down to the Ottoman era,” without naming individual Abbasid, Fatimid, Ayyubid or Mamluk patrons specifically (Masrawy’s report on Ghar al-Sajdah). This guide has not located a source that names a specific Ottoman-era renovation, architect, or inscription associated with the site, and states that gap plainly rather than inventing detail to bridge it.
The Twentieth-Century Demolition and the Modern Saudi Period
The structure’s demolition, discussed above, is reported by Masrawy as relatively recent to its 2017 publication and justified on the grounds that the dome and mosque constituted “a means to shirk” — language consistent with the broader Saudi religious-administrative position, discussed at length in the Common Misconceptions and Practical sections below, that structures built over sites of historical rather than legislated devotional significance risk encouraging exactly the kind of veneration the Hanbali legal tradition and its modern Salafi inheritors regard as a gateway to idolatry. In the modern period, the site has been folded into the loose network of Trench-era landmarks promoted, with varying degrees of formality, by Madinah’s tourism authorities: the official Visit Madinah portal lists it among six named Trench monuments, while numerous field reports from 2022 through 2025 describe a chain-link or wire perimeter fence around some or all of the mountain’s slope in this area, discussed in full in the Practical Visitor Guide below (the Visit Madinah portal’s entry on the Trench landmarks).
Architecture: What Physically Remains
The Cave Itself, Before Its Loss
A rare and valuable piece of first-hand documentation of the cave’s original physical form survives in the recorded commentary of the Madinah historian Sheikh Muhammad Abd al-Wahhab al-Abbasi, filmed on-site before the structure’s later closure. Describing the cave directly, he explains that “ghar al-sajdah,” on its eastern side, consists of “a large hollow (naqr) in the natural rock” — the literal meaning of the Arabic word ghar, a large indentation cut into stone rather than a deep tunnel-cave — and that the specific prayer-spot associated with the Prophet ﷺ, on the western side of the same formation, measured approximately four and a half metres by one metre along its east–west axis and roughly two and a half metres by two and a half metres along its north–south axis (the Madinah landmarks video featuring Sheikh Muhammad al-Abbasi’s on-site measurements of the cave). This is a small space by any standard — comparable in scale to a modest room rather than a chamber capable of holding any sizeable gathering — consistent with its purpose as an individual’s overnight shelter or prayer-spot rather than a congregational structure. The same account describes an opening or window (taqah) that once extended toward the lower slope (al-Sih), later removed, and confirms that the dome (qubbah) once built over the site “has been removed, and no trace of it remains today,” with the cave’s status as a place of prayer attributed, in his account, to Ibn Shabbah’s ninth-century history of Madinah.
What a Visitor Finds in Its Place
Every source consulted for this guide that reflects conditions from 2022 onward agrees on the essential physical fact: the free-standing cave, in the form described above, no longer exists as an enterable chamber. AtlasIslamica’s entry states without qualification that “the entire mountain is now cordoned off with a wire fence and the cave no longer exists,” adding that “the Cave and the spring doesn’t exist any more” (AtlasIslamica’s entry on the Cave of Bani Haram). This guide’s own article on Masjid Bani Haram reaches the same conclusion independently, describing “a cordoned slope rather than a cave one can enter” as the honest state of the site for a 2025–2026 visitor. A detailed narrated video visit, filmed in 2025, largely confirms this picture while adding useful nuance: the presenter finds a sign reading “no military zone” — evidently the remnant of an older, now-superseded restriction — a red no-entry pictogram, and worn signage suggesting a formerly restricted military area whose enforcement has since lapsed; a local resident confirms to the presenter on camera that the site is “not a military zone” and that it functions, in practice, as “a pilgrimage site” that remains open (a 2025 video visit to the Cave of Bani Haram documenting current signage and access). The same visitor climbs a short, steep, unimproved rock face — he describes it as “hard rock” with “no steps” — reaching a small level area with prayer mats laid out where, he says, “this cave and the spring” are understood to have once been. Crowd-sourced listings independently corroborate this same layered picture: one 2025 review describes reaching the site “despite a signage indicating the place is inside a military zone,” while another, on a wheree.com listing, states starkly that “this place is surrounded by a fence and access is prohibited” (Wanderlog’s user reviews of the Cave of Bani Haram; wheree.com’s listing for the Cave of Bani Haram).
The honest synthesis of this conflicting evidence, and the one this guide adopts, is as follows: the cave in its original architectural form — the hollow with its Umayyad-era dome and mosque — is gone, demolished at an unspecified date reported as relatively recent as of 2017. The open hillside where it stood remains physically accessible by a short, unmarked climb from the area near Masjid Bani Haram, is fenced in part but not comprehensively sealed, carries signage whose original purpose (military restriction) appears to have lapsed in enforcement even where the signs themselves remain, and functions in practice, as of the most recent field accounts available for July 2026, as an informal prayer spot that some visitors reach and use despite the absence of any formal visitor infrastructure, ticketing, or interpretive signage. This guide has found no single authoritative, dated statement from the Saudi Ministry of Hajj and Umrah, the Madinah Municipality, or the General Presidency for the Affairs of the Two Holy Mosques that resolves the site’s exact current legal status; where sources disagree this sharply about access, this guide reports the disagreement rather than picking a winner, consistent with its practice throughout.
Archaeological Findings
No published archaeological excavation report, survey, or academic paper specific to the Cave of Bani Haram has been located for this article. The Saudi heritage encyclopedia’s entry on Jabal Sala’ is a geographic and historical gazetteer rather than an archaeological study, and describes the mountain’s rock composition — ancient granite prone to mechanical weathering, its loose sediment easily eroded and transported — in geological rather than archaeological terms (the Saudi heritage encyclopedia’s entry on Jabal Sala’). No source consulted documents ground-penetrating survey, dating analysis of the vanished spring’s mineral deposits, or any formal study of the demolished dome’s foundations. This is, honestly, a site whose physical record has been lost faster than it has been studied, and this guide states that plainly rather than inventing archaeological content that does not exist in the available literature.
Stories of the Companions
Salman al-Farisi
Salman al-Farisi appears directly in the authentic account of the rock miracle quoted above, standing and watching as the Prophet ﷺ struck the obstruction three times, and it was Salman’s own testimony — “every time you struck, I saw a flash of light with it” — that prompted the Prophet’s ﷺ account of the three visions of Persia, Byzantium and Abyssinia (Sunan al-Nasa’i 3176). Salman’s own idea, adopted by the Prophet ﷺ as the strategic basis of the entire campaign, was the trench itself — a Persian military technique unfamiliar to Arabian warfare, and Salman’s presence at the very spot where the rock was struck gives this episode a particular resonance: the architect of the defensive strategy witnessing, firsthand, a vision that included his own homeland among the lands promised to the believers’ descendants.
Mu’adh ibn Jabal
Mu’adh ibn Jabal is the companion at the centre of the prostration tradition discussed above — a young, deeply respected scholar of the Ansar whom the Prophet ﷺ would later send to Yemen as a judge and teacher, and of whom the Prophet ﷺ is reported elsewhere to have said he was the most knowledgeable of the community regarding what is lawful and unlawful. His search for the Prophet ﷺ during the anxious nights of the siege, and his fear on finding him in so prolonged a prostration that he thought him dead, is consistent with the wider picture the sahih hadith paint of a companionship anxious for the Prophet’s ﷺ safety throughout the siege — the same anxiety, on the lodging tradition’s own account, that led companions to bring him into a cave overnight in the first place.
Abdullah ibn Abi Aufa
Abdullah ibn Abi Aufa, the narrator of both the du’a against the Confederates and its longer companion account, was among the comparatively few surviving companions of the Trench generation who continued to transmit hadith into old age, corresponding by letter with the next generation of Muslims — his account of the du’a survives specifically because he wrote it down decades later for Umar ibn Ubaydullah, then marching against the Kharijites, evidently as a reminder of how the Prophet ﷺ himself had once prayed against an existential threat to the community (Sahih Muslim 1742). This detail — a hadith about the Trench transmitted specifically to give guidance decades later, in a wholly different internal conflict — is a reminder that companions did not treat their memories of the siege as closed history, but as living resources for the challenges of their own later lives.
Abu Qatadah
Abu Qatadah al-Ansari, the transmitter on whose authority al-Tabarani preserves the prostration report, was a noted warrior and horseman among the Ansar, present at most of the Prophet’s ﷺ major campaigns from Uhud onward. His role here is limited to transmission rather than direct participation in the episode itself, and no source consulted for this guide specifies whether he witnessed the events he narrates directly or received them from another companion, a gap this guide states honestly rather than filling with speculation.
Stories of Great Islamic Scholars
Ibn Ishaq and al-Waqidi
The earliest connected narrative accounts of the Trench campaign — including the detail of the Prophet ﷺ positioning himself with Sala’ at his back — derive from the biographical historians Ibn Ishaq (d. 150 AH), as preserved in Ibn Hisham’s recension of his Sirah, and Muhammad ibn Umar al-Waqidi (d. 207 AH), whose al-Maghazi is the source of the specific description of the Prophet ﷺ pitching his command tent “at the uppermost mosque at the foot of the mountain” (the Saudi heritage encyclopedia, citing al-Waqidi’s al-Maghazi and Ibn Hisham’s Sirah). Both historians are indispensable to any narrative account of the campaign’s geography and sequence of events, and both are treated by the hadith-critical tradition with more caution than the authors of the sahih collections — al-Waqidi in particular was judged weak in hadith transmission by scholars including Ahmad ibn Hanbal and al-Bukhari himself, even as his narrative history remains the fullest surviving account of many details of the Prophet’s ﷺ campaigns that no other source preserves. This guide’s treatment of the lodging tradition above reflects that same caution: valuable as history, not equivalent in authority to a sahih hadith.
Ibn Shabbah
Abu Zayd Umar ibn Shabbah al-Numayri (d. 262 AH), author of the early and specialised Ta’rikh al-Madinah al-Munawwarah, is cited by at least one modern account as the source recording the cave among the Prophet’s ﷺ prayer-sites and connecting it to Umar ibn Abd al-Aziz’s building activity (the Madinah landmarks video citing Ibn Shabbah’s history). Ibn Shabbah’s history is, alongside al-Samhudi’s much later Wafa’ al-Wafa, among the foundational sources for the topography of early Madinah, and this guide’s other articles on the city’s mosques rely on both extensively; this guide has not, however, been able to locate or independently verify the specific passage attributed to him here, and flags the claim as sourced to a single secondary account rather than to the primary text itself.
Al-Samhudi
Nur al-Din al-Samhudi (d. 911 AH), the fifteenth-century topographer whose Wafa’ al-Wafa bi Akhbar Dar al-Mustafa remains the single most authoritative pre-modern survey of Madinah’s mosques and monuments, is the natural source to consult for a documented medieval history of this site. This guide’s companion article on Masjid Bani Haram notes candidly that no widely available extract or secondary treatment of al-Samhudi’s work locates a specific, detailed chapter on that mosque by name; the same limitation applies here, more strongly. No source consulted for this article quotes or cites a passage of al-Samhudi’s history specifically addressing the Cave of Bani Haram or Ghar al-Sajdah, and this guide states plainly that the medieval documentary record for this specific site, as distinct from the mountain and the mosque nearby, is thinner than a premium guide would prefer, rather than inventing a citation that cannot be verified.
Ibn Taymiyyah and the Later Juristic Tradition
No source consulted for this guide records a specific, named ruling by Ibn Taymiyyah (d. 728 AH) addressing this cave by name. His much broader body of writing on the impermissibility of seeking out sites merely because the Prophet ﷺ once stopped, prayed, or slept there — writing this guide’s companion article on Masjid Bani Haram discusses in connection with the Standing Committee’s modern rulings — supplies the juristic foundation on which the modern position discussed below rests, even though the cave itself post-dates his own era of writing by many centuries in terms of its modern devotional prominence. The application of his general principle to this specific site is a modern inference, made explicitly by the Standing Committee and by contemporary scholars working in his tradition, rather than a ruling Ibn Taymiyyah himself issued about this cave.
Spiritual Reflection
Stand, if you make the climb, on the bare granite shoulder of Sala’ and look back down at the roofs of al-Fath spreading toward the golden dome of the Prophet’s Mosque in the middle distance. Somewhere on this same slope, fourteen centuries ago, exhausted men dug through cold nights on stomachs bound tight with stone, not knowing whether the next dawn would bring a Confederate breakthrough or another day of held ground. You are standing, at minimum, in the neighbourhood of that endurance, whether or not the specific rock beneath your feet is the one a companion once slept beside.
What should move you here is not a guarantee of exact coordinates. It is the plain fact, established beyond any dispute by the sahih hadith already quoted, that a community facing what the Qur’an itself calls being “violently shaken” — eyes wild, hearts in their throats, some among them ready to break and flee — held its line anyway, was fed by a neighbour’s slaughtered goat when its army had eaten nothing for three days, and prayed a direct, unadorned request for help from the only source that mattered: “O Allah, Revealer of the Book, defeat the clans; defeat them and shake them.” Ask yourself, standing on this hillside or reading of it at a distance, what you do with your own fear when it reaches your throat. The believers of the Trench did not perform composure they did not feel — the Qur’an records their terror candidly, without embarrassment. What distinguished them was not the absence of fear but what they did with it: they kept digging, kept praying, and when the wind finally came, they recognised it immediately as what had been promised to them, and it “increased them only in faith and submission.” That is a spiritual lesson available to you whether you ever set foot on this particular slope or not, and it does not require you to resolve any question about a cave’s exact history to receive it.
Practical Visitor Guide for 2026
Lead With the Truth
The Cave of Bani Haram, in the form long described by classical and Ottoman-era sources — an enclosed rock chamber with a dome and small mosque built over the Prophet’s ﷺ traditional prayer-spot — no longer exists. It was demolished, according to the one detailed press account available for this guide, on the grounds that the structure risked becoming “a means to shirk,” at a date this guide has not been able to establish with precision beyond “recent” as of a 2017 report (Masrawy’s report on Ghar al-Sajdah). What survives is an open hillside, on the western-to-northwestern slope of Jabal Sala’, reachable by a short, steep, largely unimproved climb from the area near Masjid Bani Haram, where local memory and continuing informal visitation mark the approximate spot. There is, as of the most recent field reports available for 2025 into 2026, no visitor centre, no ticketing, no official signage explaining the site’s history, and no consistent, single answer to the question of whether the area is formally open, formally restricted, or simply un-policed.
Getting There and the Climb Itself
The site sits close to Masjid Bani Haram in the al-Fath district, on Abdullah bin Nafi al-Sayegh Street, a short taxi ride — most field accounts describe five minutes or less by car — from central Madinah, or a walk of twenty to twenty-five minutes from Masjid an-Nabawi for a visitor prepared for the distance and the Madinah heat (a 2025 video visit documenting the route and climb time). From the base, the climb itself is short — most accounts describe roughly five to ten minutes — but genuinely steep, over bare rock with no constructed steps, handrail, or improved path of any kind; more than one visitor account explicitly warns to “be very careful” on the ascent. There is no shade on the climb and, as of the sources consulted, no water point, restroom, or any other visitor amenity at the site itself, notwithstanding one aggregator listing’s claim of “restroom facilities near the cave entrance” and “guided tours” — a claim this guide treats with real scepticism, since it is contradicted by every first-hand field account consulted and appears to be templated aggregator content rather than a genuine on-the-ground report (instahop.com’s listing for the Cave of Bani Haram, whose amenity claims this guide could not corroborate). Do not plan around amenities that multiple independent, dated, first-hand accounts do not confirm.
Access, Restriction and the Honest Uncertainty
Sources genuinely disagree about the site’s formal status, and this guide reports that disagreement rather than resolving it. Some accounts describe a wire fence enclosing the mountain slope with the cave area inside it, effectively closed (AtlasIslamica’s entry describing the cordoned mountain; wheree.com’s listing describing the site as fenced with access prohibited). Others, filmed as recently as 2025, describe worn or superseded “military zone” signage that a local resident confirmed no longer applies, and visitors reaching the informal prayer area on top without apparent obstruction (the 2025 video visit describing the current, apparently lapsed, signage; Wanderlog’s 2025 user review describing entry through a hole in the fence). The most plausible reading of this conflicting evidence is that the site sits in an ambiguous administrative middle ground — nominally restricted by signage that is not actively enforced, genuinely fenced in places, and accessible in practice to visitors willing to find a gap or an unmonitored approach — rather than either cleanly open or cleanly closed. A visitor planning a trip in 2026 should treat access as uncertain, confirm current conditions locally through a Madinah-based guide or hotel concierge immediately before attempting the climb, and be prepared to be turned back, fenced out, or to find nothing more than a bare hillside with a prayer mat laid over undistinguished rock.
Safety
This guide gives the same plain caution here that the Standing Committee has given regarding the structurally similar Cave of Hira on Jabal al-Nur near Makkah, where recorded falls led the same body to specifically reject even the installation of safety stairs, on the grounds that easing the climb would itself encourage a practice they hold to be an innovation (IslamQA’s presentation of the Standing Committee’s ruling on climbing to the caves of Hira and Thawr). No comparable formal safety infrastructure exists at the Cave of Bani Haram, and the climb, while shorter than Jabal al-Nur’s ascent to Hira, is unimproved bare granite without handrails, marked paths, or lighting. Visitors in poor physical condition, visiting with young children, or climbing during the heat of midday should think carefully before attempting it, and should certainly not attempt it alone or without informing others of their plan, given the complete absence of on-site staff, signage, or emergency provision reported by any source consulted for this guide.
If You Go: Honest Guidance
If you decide to climb, understand exactly what you will and will not find. You will find a steep granite hillside with a view back over the al-Fath district and, from the top, a genuine and moving vantage point onto the ground where the Trench once ran. You will very likely find a prayer mat or two, left by previous visitors, on a levelled patch of rock that local memory associates with the vanished cave and its equally vanished dome. You will not find a chamber to enter, an inscription to read, a guide on-site to explain what you are looking at, or any object connecting you physically to the seventh century — the dome, the mosque, the spring and the cave’s original form have all been reported as gone. Read this guide’s account of the authentic Trench hadith before you climb, so that what you carry up the hill with you is a working knowledge of Sahih al-Bukhari 4101, Sunan al-Nasa’i 3176, Sahih al-Bukhari 4115 and Qur’an 33:9 — material whose authenticity is not in question — rather than an expectation the physical site itself cannot honestly meet.
Common Misconceptions
“There Are Marks in the Rock from the Prophet’s ﷺ Prostration”
A recurring claim among informal guides and in some online write-ups is that a visible impression, hollow, or mark in the rock at the site preserves the physical trace of the Prophet’s ﷺ prostration or of his hands during prayer. No source consulted for this guide — including the detailed on-site measurements given by the historian Sheikh Muhammad al-Abbasi, who describes the cave’s dimensions in ordinary architectural terms without mentioning any such mark — supports this claim, and this guide has found no hadith, classical topographical source, or credible modern account that documents a physically preserved impression of this kind anywhere on the site. Given that the cave’s own original form has since been demolished and its precise contours are no longer verifiable on the ground, any specific rock formation shown to visitors today as “the mark of his prostration” should be treated as an unverifiable local claim rather than an established fact.
“Praying Inside the Cave Carries a Special, Textually Established Reward”
A second and more consequential claim, made by some private guides and repeated in tour marketing, holds that prayer at this specific spot carries a distinct spiritual reward beyond that of ordinary prayer performed anywhere. No hadith in the sahih collections, nor in the weaker material this guide has surveyed above, assigns any such specific reward to prayer at this location. The site’s significance rests entirely on a historical and devotional association — itself resting, as this guide has shown, on sources of markedly uneven strength — not on any textual promise of ritual merit. This distinction is addressed at greater length immediately below, in the discussion of the site’s status as a place of intentional ziyarah.
“This Is the Same Cave Where the Prophet ﷺ and Abu Bakr Hid During the Hijra”
At least one online account confuses the Cave of Bani Haram in Madinah with the Cave of Thawr near Makkah, where the Prophet ﷺ and Abu Bakr al-Siddiq sheltered from the Quraysh’s pursuit during the migration to Madinah, describing “the Prophet Muhammad and his companion Abu Bakr” seeking refuge in the Cave of Bani Haram itself during that journey (Akhbar Point’s account of the Cave of Bani Haram, which conflates it with the Hijra narrative). This is a straightforward geographical and historical error. The Hijra cave, Ghar Thawr, is a well-documented site south of Makkah, entirely unrelated to Jabal Sala’ or the Battle of the Trench, which took place in Madinah roughly five years after the Hijra itself. No source with any credibility conflates the two events, and this guide flags the error specifically because it illustrates how quickly unofficial online content about lesser-known sites can drift into outright fabrication.
“The Prophet ﷺ Prostrated Here for Exactly Three Days and Nights”
Some retellings of the prostration tradition add the specific detail that the Prophet’s ﷺ prostration lasted three full days and nights, a dramatic elaboration this guide has not found supported in the base report as preserved by al-Haythami and reproduced by IslamicLandmarks.com and AtlasIslamica, both of which describe only a prostration “for such a long time” that Mu’adh feared he had died, without specifying an exact duration (IslamicLandmarks.com’s entry on the Cave of Bani Haram). The three-day figure appears to be a later embellishment layered onto the original narration by unofficial guides and informal retellings, and this guide reports it as an added, unverified detail rather than as part of the authenticated core of the story.
The Mandatory Caveat: Ziyarah Intent, the Standing Committee, and the Traditionalist Reply
It is necessary, before closing, to separate two questions this guide has kept apart throughout: whether the historical association between this hillside and the Prophet’s ﷺ life is old and sincerely held, and whether climbing to it, praying inside it, or seeking blessing there is itself a legislated or recommended act of worship. On the second question there is a clear, named, and long-standing scholarly position that this guide’s companion article on Masjid Bani Haram also sets out, and that applies here with, if anything, greater force, since the specific practice of climbing a mountain to seek out a cave is the exact scenario a modern Saudi fatwa addresses by name.
Ibn Taymiyyah’s foundational position — that no site in or around Madinah beyond the Prophet’s Mosque itself, his grave, the graves of al-Baqi’, the martyrs of Uhud, and Masjid Quba carries a basis in the sunnah for intentional devotional visitation — was carried forward by Muhammad ibn Salih al-Uthaymeen and is applied directly, in Saudi Arabia’s Permanent Committee for Islamic Research and Fatwas (the Standing Committee), to precisely this category of site (IslamQA’s answer on visiting places and mosques associated with the Prophet’s campaigns). The Standing Committee has gone further than a general caution in the specific matter of mountains and caves: asked directly about the dangers of pilgrims falling while climbing to the Cave of Hira on Jabal al-Nur near Makkah, and about a proposal to install stairs and a protective grate to make the climb safer, the Committee ruled that “climbing up to this cave is not one of the rituals of Hajj or the Sunnahs of Islam, rather it is an innovation and one of the things that lead to shirk,” and explicitly rejected easing the climb, “in accordance with the words of the Prophet ﷺ: ‘Whoever introduces into this matter of ours that which is not part of it will have it rejected'” — a hadith agreed upon by Bukhari and Muslim (IslamQA’s presentation of the Standing Committee’s ruling on climbing to the caves of Hira and Thawr). The same source notes that “more than fourteen centuries have passed… and we do not know of any of the caliphs who succeeded the Messenger of Allah ﷺ, or his companions, or the imams of the Muslims who took charge of the holy sites, who did that at any time during this long history” — an argument from the silence of the earliest generations that the Committee applies to climbing for devotional purposes specifically, while explicitly permitting a visit made only “to take a look… without seeking to draw closer to Allah” through the climb itself.
The reported twentieth-century demolition of the dome and mosque once built over this very cave, discussed above and justified, according to the single detailed account available, on the grounds that it was “a means to shirk,” is the direct historical application of exactly this reasoning to this exact site. This guide reports that demolition as a fact of the site’s history, not as an endorsement of the reasoning behind it.
Other scholars, particularly within Sufi and broader traditionalist currents of Sunni scholarship, hold a wider view of tabarruk — seeking blessing through physical proximity to places, objects and relics connected to the Prophet ﷺ and the righteous — and would not necessarily agree that visiting a site such as this, with genuine historical roots in the seerah even where the specific identification rests on weaker chains, constitutes an innovation simply by virtue of the visitor’s devotional intent. This school points to a continuous, centuries-long practice, evidenced by the Umayyad, Abbasid and Ottoman-era maintenance of exactly this site’s dome and mosque, as itself a form of scholarly and communal consensus that such visitation was acceptable, and would read the modern demolition as a comparatively recent departure from a much longer precedent rather than a correction of one.
This guide does not adjudicate between these positions. Both are held by identifiable scholars and institutions, both rest on real and citable reasoning, and the gap between them will not be closed by a travel guide. What this guide can say plainly, as it has throughout, is this: visiting this hillside to understand the geography of the Trench, to stand where a community once endured genuine fear and genuine hunger, and to reflect on the Qur’anic account of that trial in Surah al-Ahzab, is a different act from climbing in the belief that the specific ground, or a specific prostration mark, or a specific prayer performed on this exact rock, carries a reward that prayer anywhere else does not. The first is historical and educational, consistent with everything the sahih hadith actually establish. The second is a claim that the scholars and the official religious institution of the country in which this site sits hold to have no basis in the sunnah, and that the state has, on the evidence available, acted on directly by removing the structure once built to mark it. The reader is left, as this guide leaves every comparable question, to weigh the matter according to their own school of thought and their own conscience.
The Stories Told by Unofficial Guides
Because the cave carries no official visitor infrastructure, almost everything a tourist learns about it on-site comes from private drivers, informal guides, or fellow pilgrims rather than from any posted, vetted source. This guide has traced, in the sections above, at least three claims traceable to this informal channel that do not hold up against the available sources: the conflation with the Hijra cave near Makkah, the specific “three days and nights” duration of the prostration, and the existence of visible physical marks left by the Prophet’s ﷺ body in the rock. None of this means every detail an informal guide offers is false — the core lodging and prostration traditions themselves circulate through exactly this same oral channel, and this guide has shown that both have genuine, if uneven, roots in named classical sources. It means only that a visitor relying on word-of-mouth commentary at the site itself should treat vivid, specific, uncited claims — especially anything involving miraculous physical evidence still visible today — with the same scepticism this guide has applied throughout, and should feel free to ask, politely, what source a guide is drawing on for any claim that sounds more dramatic than the material this article has been able to verify.
Lesser-Known Facts
The mountain’s other name, Jabal Thawab, recorded in the Saudi heritage encyclopedia as an alternative to Sala’, is also the name given in some accounts of the prostration tradition as the specific high point where Mu’adh ibn Jabal was told he would find the Prophet ﷺ — meaning the two traditions this guide has treated as connected to “Jabal Sala'” in general may, in the earliest wording of the sources, actually specify a named summit or shoulder of the mountain rather than the mountain as an undifferentiated whole, a level of topographical precision that has likely been lost in translation and retelling over the centuries (IslamicLandmarks.com’s entry on the Cave of Bani Haram, naming Mount Thawab).
The spring once associated with the cave carried its own name, Ayn ibn Sahl, distinct from the cave itself, suggesting it may have had its own separate line of local memory and attribution before being folded into the cave’s story as a single combined site (Rawafid’s account naming the spring Ayn ibn Sahl).
The cave is recorded, in Madain Project’s entry on the Seven Mosques, as a “see also” reference rather than a member of the canonical seven — confirmation, from a source independent of this guide’s own article on Masjid Bani Haram, that the cave and the Seven Mosques cluster are related but administratively and historically distinct groupings, notwithstanding how routinely modern tour operators bundle all of them into a single half-day itinerary.
The official Visit Madinah government portal’s own list of Trench-era landmarks numbers only six sites where popular tradition still speaks of seven, mirroring — coincidentally or not — the same numerical slippage this guide’s article on the Masajid al-Sab’ah documents for the Seven Mosques themselves, where one of the original seven no longer survives (the Visit Madinah portal’s entry on the Trench landmarks).
Timeline
- Shawwal, 5 AH (roughly March–April 627 CE): The Battle of the Trench. The Muslims dig a defensive ditch across Madinah’s exposed northern approach, anchored on Jabal Sala’. Companions, fearing for the Prophet’s ﷺ safety at night, are reported by Talha ibn Kharash to have brought him into the Cave of Bani Haram to sleep, descending again each morning.
- 5 AH, during the siege: The Prophet ﷺ strikes a rock obstructing the trench three times, each blow producing a flash of light witnessed by Salman al-Farisi and followed by a vision of the cities of Persia, Byzantium and Abyssinia — recorded as Sunan al-Nasa’i 3176, graded Hasan.
- 5 AH, during the siege: The miracle of the food at the house of Jabir ibn Abdullah in the Banu Haram quarter, recorded in Sahih al-Bukhari 4101 and Sahih Muslim 2039, and treated in full in this guide’s article on Masjid Bani Haram.
- 5 AH, during the siege: The Prophet ﷺ invokes Allah directly against the Confederate armies, recorded in Sahih al-Bukhari 4115 and Sahih Muslim 1742.
- 5 AH, according to al-Tabarani’s report via Abu Qatadah: Mu’adh ibn Jabal finds the Prophet ﷺ in a prolonged prostration on a high point of the mountain, following news brought by Jibril that Allah would not disgrace him in his community — the episode giving the site its name Ghar al-Sajdah.
- 5 AH: Allah sends the wind and unseen forces that break the siege, described in Qur’an 33:9, and Surah al-Ahzab verses 9–27 are revealed reviewing the episode.
- Undated, likely soon after 11 AH: The events of the siege pass into the collective memory of the Banu Haram quarter and the wider Ansar community of this part of Madinah.
- Third century AH (dates uncertain): Ibn Shabbah’s Ta’rikh al-Madinah al-Munawwarah reportedly records the cave among the Prophet’s ﷺ prayer-sites, according to a modern secondary account; this guide has not independently verified the primary passage.
- Circa 87–93 AH (706–712 CE), during his governorship of Madinah: Umar ibn Abd al-Aziz reportedly builds a dome and small mosque marking the site of the Prophet’s ﷺ prayer at the cave, according to a 2017 Egyptian press account.
- 99–101 AH (717–720 CE): Umar ibn Abd al-Aziz becomes caliph; the same account states that subsequent caliphs maintained the structure.
- Through the Ottoman period (to early 20th century CE): The dome and mosque reportedly remain standing and maintained, per the same source.
- 20th century, date unconfirmed: The dome and mosque over the cave are demolished, reportedly on the grounds that the structure was “a means to shirk.”
- 2017: Masrawy publishes a detailed Arabic-language account of a visit to the demolished site, the fullest single narrative source located for this guide.
- 2022–2025: Multiple video and written field accounts document a wire-fenced, partly restricted, informally visited hillside with no cave chamber remaining, worn or superseded “military zone” signage, and continuing informal prayer use by pilgrims who reach the site.
- July 2026: The date as of which this guide’s account of the site’s condition is current. No source available confirms a formal reopening, a definitive closure, or an official government statement resolving the site’s access status; visitors should verify current conditions locally before attempting the climb.
Key Lessons
Historical
The Battle of the Trench was won by discipline sustained under real fear, not by any single miracle at a single fixed point on the map — and the multiple, partly competing traditions attached to this one hillside are themselves a lesson in how quickly a community’s collective memory of a hard, formative episode can attach itself to specific stones, specific hollows, and specific names, sometimes with more devotion than documentation.
Spiritual
Surah al-Ahzab’s description of the believers’ fear — eyes wild, hearts in their throats — sits directly beside its description of their response: recognition, faith, submission, and increased conviction rather than despair. The lesson available to the reader is not that fear itself is a failure but that what one does with fear determines what it teaches.
Personal
Mu’adh ibn Jabal’s anxious search for the Prophet ﷺ, and his relief on finding him alive after fearing the worst, is a small, human moment inside a much larger campaign — a reminder that the companions’ devotion showed itself as much in ordinary worry for another person’s safety as in any dramatic act of worship or war.
Practical
For the 2026 pilgrim, the operative lesson this guide has tried to model throughout is methodological: separate the strength of a hadith from the status of a physical site, separate old and sincere local memory from verified history, and make your own visiting decisions — whether to climb, whether to pray there, whether to go at all — with that distinction clearly in view rather than on the strength of whatever a driver or an unofficial guide tells you at the foot of the hill.
Sources
Primary Islamic Sources
Sahih al-Bukhari 4101; Sahih al-Bukhari 4102; Sahih Muslim 2039; Sahih al-Bukhari 4115; Sahih Muslim 1742; Sunan al-Nasa’i 3176; Sahih al-Bukhari 1013; Sahih Muslim 897; Qur’an 33:9; Qur’an 33:10–13; Qur’an 33:22. A caution on method: the narrative historians Ibn Ishaq (via Ibn Hisham’s recension), al-Waqidi’s al-Maghazi, and al-Tabari’s history are used throughout this guide for narrative sequence and topographical detail, and are indispensable for that purpose, but are treated by the hadith-critical tradition as weaker authorities than the sahih hadith collections; where this guide relies on them, that reliance is flagged explicitly in the text rather than left implicit.
Classical Scholars and Compilations
Al-Tabarani and al-Haythami’s Majma’ al-Zawa’id (for the prostration tradition, on the authority of Abu Qatadah); Ibn Shabbah’s Ta’rikh al-Madinah al-Munawwarah (cited by a modern secondary source for the cave’s inclusion among the Prophet’s ﷺ prayer-sites, not independently verified for this article); Nur al-Din al-Samhudi’s Wafa’ al-Wafa bi Akhbar Dar al-Mustafa (consulted but found not to contain an independently locatable, detailed treatment of this specific site); Ibn Kathir’s tafsir of Surah al-Ahzab; al-Tabari’s tafsir and history.
Modern Academic and Reference Sources
the Saudi Ministry of Culture’s heritage encyclopedia entry on Jabal Sala’; the official Visit Madinah portal’s entry on the Trench landmarks; AtlasIslamica’s entry on the Cave of Bani Haram; IslamicLandmarks.com’s entry on the Cave of Bani Haram; Masrawy’s report on a visit to Ghar al-Sajdah; Rawafid’s account of the cave and the nearby spring; IslamQA’s answer on visiting places and mosques associated with the Prophet’s campaigns; IslamQA’s presentation of the Standing Committee’s ruling on climbing to the caves of Hira and Thawr; Islamicstudies.info’s presentation of Mawdudi’s introduction to Surah al-Ahzab verses 9–27; a Madinah landmarks video featuring historian Sheikh Muhammad Abd al-Wahhab al-Abbasi’s on-site account and measurements; a 2025 video visit documenting current signage, access and the climb; Wanderlog’s listing and user reviews of the Cave of Bani Haram; wheree.com’s listing describing the site as fenced with access prohibited; Akhbar Point’s account of the Cave of Bani Haram (flagged in this guide for its erroneous conflation with the Hijra narrative).
A Note on Method
This article treats the Cave of Bani Haram as a site whose evidentiary basis is markedly weaker and thinner than the campaign it is traditionally connected to. The Battle of the Trench itself, its hunger, its rock, its du’a, its wind, and the Qur’anic chapter it produced, are documented in the sahih hadith and the Qur’an with a strength this guide has quoted directly and graded honestly throughout. The specific identification of this hillside, and of a particular hollow in its rock, as the site of the Prophet’s ﷺ overnight shelter or his prostration of gratitude, rests instead on sirah literature, a report preserved outside the six canonical hadith collections, and a chain of local memory maintained by governors and caliphs for perhaps a thousand years before being physically removed in the twentieth century on doctrinal grounds. Both of these things can be true at once — a magnificent, well-attested campaign, and a comparatively fragile claim about one particular rock on the mountain that watched it — and this guide has tried throughout to let the reader see exactly where the strong ground ends and the traditional, honestly labelled material begins. Where this guide could not verify a claim, including the exact date of the site’s demolition, the primary-source location of Ibn Shabbah’s reported reference, and any archaeological study of the site, it has said so directly rather than smoothing over the gap.