Skip to the content
Independent guide. Not the Ministry of Hajj and Umrah, and not any government body. Official sites →
Places

The Cave of Thawr

In 622 CE, as the Prophet left Makkah for Madinah, he and Abu Bakr did not head north at once. They went south, climbed a mountain and hid for three nights in a narrow cave while Quraysh searched for them. That cave, Ghar Thawr, is referred to in the Quran and remains one of the most moving places in the story of the Hijrah.

What happened here

The main lines of the story are recorded in the earliest biographies and in the hadith collections. Quraysh, the ruling tribe of Makkah, had resolved to kill the Prophet, and he left the city by night with Abu Bakr. Instead of taking the northern road to Madinah, where pursuers would look first, the two went south to Mount Thawr and sheltered in a cave near its top.

They stayed three nights. Abu Bakr's son Abdullah spent the days in Makkah listening to what Quraysh were planning and brought the news each evening. His daughter Asma brought food, and is remembered as the one who tore her waistband in two to tie up the provisions. Abu Bakr's freedman Amir ibn Fuhayrah grazed sheep over their tracks and gave them milk. When the search had cooled, a hired guide met them with camels and led them by an unusual coastal route to Madinah, as described on our Madinah history page.

The Quranic verse

The cave is the setting of Surah al-Tawbah 9:40, which speaks of the Prophet as the second of two in the cave, telling his companion not to grieve because God was with them. The verse is the reason Abu Bakr is often called the companion of the cave, and it gives the site a significance grounded in scripture rather than in later legend.

The spider and the doves

Many people know the story that a spider spun a web across the entrance and doves nested there, so the pursuers assumed nobody had entered. This account is found in later narrations, and hadith scholars differ over the strength of their chains: some consider them weak, others acceptable. It is widely told and taught, but it does not have the same standing as the verse or the core account above.

Visiting the cave

The cave lies just below the summit of Jabal Thawr, and the only way to reach it is on foot. The mountain page covers the route, the time it takes and the safety advice. At the top you find a low, cramped opening in a jumble of boulders. Inside there is room for only a few people to crouch, and at busy times visitors queue to look in.

Scholars generally hold that there is no special prayer or ritual to perform in the cave, and that praying inside it carries no extra merit; the Prophet did not return to it as an act of worship. Saudi authorities post signs to this effect. Many visitors simply stand outside, reflect on the trust the verse describes and read the account of the Hijrah. Please do not write names on the rock, leave notes or take stones. Our guide to historic places gives the same advice for every site.

Sources

Page updated 2026-11-21