Stories · Seerah — the Madani Story Pages
The Hijrah to Madinah
The migration that opens the Madani period, told at full length from the verse and the narrations that carry it: the preparation in Abu Bakr’s house, three nights in the cave of Thawr, the coast road, and the arrival at Quba.
THE SHORT ANSWER — The Hijrah is the Prophet’s ﷺ migration from Makkah to Madinah with Abu Bakr: a noon visit with permission to leave, three nights hidden in the cave of Thawr, a hired guide on the coast road past Suraqah’s pursuit, and an arrival at Quba on a Monday in Rabi‘ al-Awwal.
How this story is sourced
This story page belongs to the Madani pillar, and it follows the sourcing order the Stories hub sets for the whole section. A verse of the Qur’an stands first. A narration in the collections stands next, cited by collection and number. Material that lives in the seerah books is printed as the books’ report, in the books’ name. The pillar survey, Seerah of the Prophet ﷺ — the Madani Life, tells the journey inside a single section; the telling here goes stage by stage through the same sources. The years before the migration stand in the companion pillar, Seerah of the Prophet ﷺ — the Makki Life.
The preparation and the departure
The preparation sits inside ‘Aisha’s narration of the migration (Sahih al-Bukhari 3905), and it begins months before the departure. When Abu Bakr first made ready to leave for Madinah, the Prophet ﷺ told him to wait, because he hoped to be given permission to migrate as well. Abu Bakr waited, and prepared: “He fed two she-camels he possessed with the leaves of As-Samur tree that fell on being struck by a stick for four months.”
The permission came at an hour nobody expected. ‘Aisha’s narration sets the scene in her father’s house: “One day, while we were sitting in Abu Bakr’s house at noon, someone said to Abu Bakr, “This is Allah’s Messenger (ﷺ) with his head covered coming at a time at which he never used to visit us before.”” The narration then gives the exchange in its own words: “i have been given permission to migrate.” Abu Bakr said, “Shall I accompany you? May my father be sacrificed for you, O Allah’s Messenger (ﷺ)!” Allah’s Messenger (ﷺ) said, “Yes.”
Abu Bakr offered one of the two camels he had fed for four months. The offer was accepted on one condition, in the narration’s words: “(I will accept it) with payment.” The baggage was made ready at once, and the journey food went into a leather bag. The bag needed a tie, so “Asma, Abu Bakr’s daughter, cut a piece from her waist belt and tied the mouth of the leather bag with it, and for that reason she was named Dhat-un-Nitaqain (i.e. the owner of two belts).”
Three nights in the cave of Thawr
The Qur’an speaks of the migration once, in Surah al-Tawbah, and its telling is the spine of this stage. The verse names neither traveller and no mountain; it fixes two men, a cave, a sentence of reassurance, and help that arrived unseen.
إِلَّا تَنصُرُوهُ فَقَدْ نَصَرَهُ ٱللَّهُ إِذْ أَخْرَجَهُ ٱلَّذِينَ كَفَرُوا۟ ثَانِىَ ٱثْنَيْنِ إِذْ هُمَا فِى ٱلْغَارِ إِذْ يَقُولُ لِصَٰحِبِهِۦ لَا تَحْزَنْ إِنَّ ٱللَّهَ مَعَنَا فَأَنزَلَ ٱللَّهُ سَكِينَتَهُۥ عَلَيْهِ وَأَيَّدَهُۥ بِجُنُودٍ لَّمْ تَرَوْهَا وَجَعَلَ كَلِمَةَ ٱلَّذِينَ كَفَرُوا۟ ٱلسُّفْلَىٰ وَكَلِمَةُ ٱللَّهِ هِىَ ٱلْعُلْيَا وَٱللَّهُ عَزِيزٌ حَكِيمٌ
˹It does not matter˺ if you ˹believers˺ do not support him, for Allah did in fact support him when the disbelievers drove him out ˹of Mecca˺ and he was only one of two. While they both were in the cave, he reassured his companion, “Do not worry; Allah is certainly with us.” So Allah sent down His serenity upon the Prophet, supported him with forces you ˹believers˺ did not see, and made the word of the disbelievers lowest, while the Word of Allah is supreme. And Allah is Almighty, All-Wise.
Qur’an 9:40 · Surah al-Tawbah · translation: Dr Mustafa Khattab, quran.com/9/40 · Arabic: Tanzil
The narrations supply what the verse leaves open. ‘Aisha’s account fixes the place and the length of the stay in one line: “Then Allah’s Messenger (ﷺ) and Abu Bakr reached a cave on the mountain of Thaur and stayed there for three nights” (Sahih al-Bukhari 3905). The companion of the verse is Abu Bakr, and his own narration preserves the words spoken inside the cave:
“I said to the Prophet (ﷺ) while I was in the Cave. “If any of them should look under his feet, he would see us.” He said, “O Abu Bakr! What do you think of two (persons) the third of whom is Allah?””
Abu Bakr · Sahih al-Bukhari 3653 · sunnah.com/bukhari:3653
The three nights ran on the work of Abu Bakr’s household. His son ‘Abdullah, an “intelligent and a sagacious youth”, spent his days in Makkah as one of its own: “He would keep in mind any plot made against them, and when it became dark he would (go and) inform them of it.” His freed slave ‘Amir ibn Fuhaira “used to bring the milch sheep (of his master, Abu Bakr) to them a little while after nightfall”, so the two in the cave “always had fresh milk at night”.
The spider and the doves — a grading disagreement
One famous detail of the cave stands outside the Sahih collections, and its grading disagreement is printed here in full, in the same terms the Makki pillar prints it. The spider’s web over the cave mouth comes from a narration of Imam Ahmad (3241) from Ibn ‘Abbas. The graders have not spoken with one voice: “Its isnaad was classed as hasan by al-Haafiz ibn Hajar in Fath al-Baari and by Ibn Katheer in al-Bidaayah wa’l-Nihaayah (3/222). It was classed as da’eef by al-Albaani in al-Silsilah al-Da’eefah.” Ahmad Shakir recorded that “there is some dispute concerning its isnaad”, and the commentators on al-Musnad classed its isnad da‘eef.
The two doves rest on thinner ground: Ibn Kathir mentions them in al-Bidaayah wa’l-Nihaayah (3/223), narrated by Ibn ‘Asaakir, and Ibn Kathir himself called that hadeeth “ghareeb jiddan” — very strange — with this isnad. Al-Albani’s summary covers both details: “Note that there is no saheeh hadeeth concerning the spider and doves at the cave, despite the fact that this is widely mentioned in some books and lectures”. The cave on this page is the cave of the verse and the Sahih; the spider and the doves stand here as reports whose chains the scholars dispute.
The coast road and Suraqah
The way out of the cave had been arranged before the travellers entered it. The two had hired “a man from the tribe of Bani Ad-Dail from the family of Bani Abd bin Adi as an expert guide”, a man still “on the religion of the infidels of Quraish”, and they “trusted him and gave him their two she-camels and took his promise to bring their two she camels to the cave of the mountain of Thaur in the morning after three nights later” (Sahih al-Bukhari 3905). Bukhari’s narration never names him. The seerah books do: Ar-Raheeq Al-Makhtum calls him “‘Abdullah bin Uraiquit, who had as yet not embraced Islam, but was trusted by Abu Bakr, and had been hired by him as a guide”.
On the morning after the third night the party set out, four men: the Prophet ﷺ, Abu Bakr, ‘Amir ibn Fuhaira and the guide. ‘Aisha’s narration closes its account of the departure in one line: “‘Amir bin Fuhaira and the guide went along with them and the guide led them along the sea-shore” (Sahih al-Bukhari 3905). The books describe the same choice in their own words: the guide “led them on hardly ever trodden ways along the coastal route”.
The road had a pursuer. Quraysh’s messengers had gone out with an offer, and Suraqah ibn Malik ibn Ju’sham tells the story in his own narration (Sahih al-Bukhari 3906): “they had assigned for the persons why would kill or arrest Allah’s Messenger (ﷺ) and Abu Bakr, a reward equal to their bloodmoney.” Suraqah saw figures on the shore, kept his recognition to himself, took his spear and his horse, and rode after the party. His horse stumbled once; he drew his divining arrows, and the lot he disliked came out; he rode on regardless, until, in his own words, “suddenly the forelegs of my horse sank into the ground up to the knees, and I fell down from it.”
Al-Bara’s shorter telling of the same moment (Sahih al-Bukhari 3908) adds the Prophet’s ﷺ part in it: he invoked against Suraqah, the forelegs sank, and when Suraqah called out, “Invoke Allah to rescue me, and I will not harm you”, the Prophet ﷺ invoked Allah for him. In his own narration Suraqah then called the party to feel secure, and they stopped. He told them the plans made against them and offered journey food and goods; the offer was refused, and the Prophet ﷺ asked one thing of him: “Do not tell others about us.” At Suraqah’s request a statement of security was written for him on a piece of parchment, by ‘Amir ibn Fuhaira, and the party rode on.
The road’s quieter scene stands in al-Bara’s narration beside the pursuit. The Prophet ﷺ grew thirsty, and the party passed a shepherd. Abu Bakr tells it in his own words: “I took a bowl and milked a little milk in it and brought it to the Prophet (ﷺ) and he drank till I was pleased” (Sahih al-Bukhari 3908).
Quba — the first halt
Madinah had been watching for the party. ‘Urwa ibn al-Zubayr’s narration, carried in the same hadith of Bukhari (3906), describes the Muslims of the city going out “to the Harra every morning”, waiting “till the heat of the noon forced them to return”. On the day of the arrival they had already gone home, when a Jewish man on the roof of one of his people’s forts saw the travellers “dressed in white clothes, emerging out of the desert mirage”, and shouted: “O you ‘Arabs! Here is your great man whom you have been waiting for!”
The Muslims rushed to their arms and received the party at the Harra. The Prophet ﷺ “turned with them to the right and alighted at the quarters of Bani ‘Amr bin ‘Auf” at Quba, and ‘Urwa’s narration dates the halt in its own words: “this was on Monday in the month of Rabi-ul-Awal”. The narration fixes the weekday and the month, no more; the date stands here at its precision.
At Quba, some of the greeters mistook which of the two men they had been waiting for. Abu Bakr stood up receiving the people while the Prophet ﷺ sat down and kept silent, and some of the Ansar who had never seen the Prophet ﷺ began greeting Abu Bakr, “but when the sunshine fell on Allah’s Messenger (ﷺ) and Abu Bakr came forward and shaded him with his sheet only then the people came to know Allah’s Messenger (ﷺ)”. The stay lasted, by the same narration, “ten nights”, and within it the Prophet ﷺ “established the mosque (mosque of Quba) which was founded on piety”.
The camel kneels in Madinah
From Quba the Prophet ﷺ mounted his she-camel and rode into Madinah, the people walking with him, “till his she-camel knelt down at (the place of) the Mosque of Allah’s Messenger (ﷺ) at Medina”. The ground was a yard for drying dates, and it belonged to two orphan boys, Suhail and Sahl, who were under the guardianship of ‘Asad ibn Zurara. As the camel knelt, the Prophet ﷺ said: “This place, Allah willing, will be our abiding place.”
He then called the two boys “and told them to suggest a price for that yard so that he might take it as a mosque. The two boys said, “No, but we will give it as a gift, O Allah’s Messenger (ﷺ)!”” (Sahih al-Bukhari 3906). The mosque rose on that yard, and the Madani period had its ground. The years that followed — the community’s building, Badr, Uhud and the rest of the decade — stand in the pillar survey, Seerah of the Prophet ﷺ — the Madani Life.
The journey at a glance
| Stage | What the sources fix | Carried by |
|---|---|---|
| The preparation | Two camels fed for four months; permission given at a noon visit; the camel accepted with payment | Bukhari 3905 |
| The cave | Three nights on Mount Thawr; “Do not worry; Allah is certainly with us” | Qur’an 9:40 · Bukhari 3905, 3653 |
| The road | A hired guide; the sea-shore route; Suraqah turned back with a written security | Bukhari 3905, 3906, 3908 |
| Quba | Arrival on a Monday in Rabi‘ al-Awwal; ten nights; the mosque founded on piety | Bukhari 3906 |
| Madinah | The camel knelt at the date-drying yard of Suhail and Sahl; the price asked, the gift offered | Bukhari 3906 |
Questions
Who was the companion in the cave?
The verse itself gives no name: Qur’an 9:40 says only “his companion”. The narrations identify him as Abu Bakr. His own account of the cave stands in Sahih al-Bukhari 3653, where he recalls saying, “If any of them should look under his feet, he would see us”, and the answer he received: “What do you think of two (persons) the third of whom is Allah?” ‘Aisha’s journey narration (Bukhari 3905) runs on the two men throughout.
Why did the journey begin by heading away from Madinah?
Madinah lies north of Makkah, and the cave of Thawr lies to the south. ‘Aisha’s narration records the order of the journey without pausing on the reason: three nights in the cave, then a guide who “led them along the sea-shore” (Sahih al-Bukhari 3905). The seerah books describe the coastal route as “hardly ever trodden ways”, a road a search would watch last; that framing is the books’.
What did Suraqah take away from the road?
A written statement of security on a piece of parchment, granted at his own request (Sahih al-Bukhari 3906). He had come for the reward Quraysh offered, equal to the blood-money of either man; he left with the parchment, after the Prophet ﷺ refused his food and goods and asked only, “Do not tell others about us.”
Who was the guide on the coast road?
Bukhari’s narration leaves him unnamed: a man of Banu al-Dayl, hired as an expert guide, still on the religion of Quraysh, and trusted with the two camels and the secret of the cave (Sahih al-Bukhari 3905). The seerah books name him ‘Abdullah ibn Uraiqit; Ar-Raheeq Al-Makhtum describes him as a man “who had as yet not embraced Islam, but was trusted by Abu Bakr, and had been hired by him as a guide”.
On what day did the party reach Quba?
‘Urwa’s narration in Sahih al-Bukhari 3906 fixes the weekday and the month: the arrival among Banu ‘Amr ibn ‘Awf “was on Monday in the month of Rabi-ul-Awal”. The narration fixes no day of the month, so no fuller date is printed here.
Where did the Prophet’s ﷺ mosque in Madinah rise?
On the ground where his she-camel knelt when he rode in from Quba: a yard for drying dates belonging to the orphan boys Suhail and Sahl (Sahih al-Bukhari 3906). He asked the boys to name a price for the yard as a mosque; they answered, “No, but we will give it as a gift, O Allah’s Messenger (ﷺ)!”
ImanAtlas retells the seerah from its sources and gives no rulings. For a question about your own situation, ask a qualified scholar you trust.
Sources
- Qur’an 9:40 — Arabic from Tanzil; translation by Dr Mustafa Khattab at quran.com/9/40 (footnote marker in the translation not reproduced).
- Sahih al-Bukhari 3905 (‘Aisha — the preparation, the cave, the guide), 3653 (Abu Bakr — the words in the cave), 3906 (Suraqah’s own telling; ‘Urwa — the arrival) and 3908 (al-Bara’ — Suraqah in short; the shepherd) — sunnah.com (collection pages).
- The spider, the doves and their gradings — IslamQA answer 27224 (Imam Ahmad 3241; Ibn Hajar, Fath al-Bari; Ibn Kathir, al-Bidayah wa’l-Nihayah 3/222–223; al-Albani, al-Silsilah al-Da‘ifah).
- The guide’s name and the coastal route as the seerah books give them — Ar-Raheeq Al-Makhtum, “Migration of the Prophet”, sunnipath.net.
- Section method — Stories hub · Sources & Method · No-Fatwa Disclaimer.
