Skip to the lesson
Crescent Children
A small cave on a rocky mountain at night under the stars.

The Hijrah to Madinah

Ages 4 to 66 min read

This lesson is being reviewed.

Little ones (For a grown-up to read aloud)

The Prophet ﷺ and his friend Abu Bakr (may Allah be pleased with him) left Makkah and hid in a cave. Abu Bakr was worried. The Prophet ﷺ said: do not be sad, Allah is with us.

A new home is offered

The books of seerah tell us that people from the town of Yathrib, far to the north, met the Prophet ﷺ at the time of the pilgrimage, believed in him, and promised to protect him as they would protect their own families.

One small group after another, the Muslims of Makkah began to leave for Yathrib. It would soon be called Madinah, the City.

From the Qur'an (8:30)

The leaders of Quraysh plotted against him: to imprison him, or to kill him, or to drive him out. They made their plans, and Allah's plan is above every plan.

Leaving Makkah

From a hadith (Sahih al-Bukhari 3905)

'A'ishah (may Allah be pleased with her) told how the Messenger of Allah ﷺ came to her father's house at midday, an hour when he never usually came, and told Abu Bakr that he had been given permission to leave. Abu Bakr asked to go with him.

He had been keeping two camels ready for this very day.

From a hadith (Sahih al-Bukhari 3905)

The family packed food for the journey. Asma' (may Allah be pleased with her), Abu Bakr's daughter, had nothing to tie the bag with, so she tore her own waistband to do it.

Three nights in the cave

From a hadith (Sahih al-Bukhari 3905)

They went to a cave on Mount Thawr and stayed there for three nights.

Abu Bakr's son 'Abdullah, a sharp young man, spent each night with them and slipped back before dawn so that he was among Quraysh in the morning, and he brought them the news after dark.

'Amir ibn Fuhayrah (may Allah be pleased with him) grazed the sheep past the cave in the evening, so that they had fresh milk.

From a hadith (Sahih al-Bukhari 3653)

The men searching for them came so close that Abu Bakr said: if one of them looked down at his feet, he would see us. The Prophet ﷺ answered: Abu Bakr, what do you think of two who have Allah as their third?

إِذْ هُمَا فِى ٱلْغَارِ إِذْ يَقُولُ لِصَٰحِبِهِۦ لَا تَحْزَنْ إِنَّ ٱللَّهَ مَعَنَا 
Qur'an 9:40

Idh humaa fil-ghaari idh yaqoolu lisaahibihi laa tahzan innallaaha ma'anaa

Simple meaning: When the two of them were in the cave, he said to his companion: do not grieve, Allah is with us.

Our explanation for children, not a translation. Read a full translation

From a hadith (Sahih al-Bukhari 3905)

After three nights their guide met them at the cave with the two camels, as he had promised, and led them by the road along the coast.

Try it

Who did what?

Who travelled with the Prophet ﷺ?

Ask your parents

Ask your parents: when I feel afraid, can you remind me of what the Prophet ﷺ said in the cave?

Card 1 of 17

For older children and parents

Go deeper (For ages 10 to 12)

Trust, and a plan

Look how carefully the journey was prepared: camels made ready in advance, a hidden place to wait, a skilled guide, a messenger for news, food every evening, and a road along the coast. The Prophet ﷺ trusted Allah completely, and he also did everything a person can do. That is what tawakkul means.

Helpers the eye did not see

The ayah of the cave goes on to say that Allah sent down His calm and supported him with forces that could not be seen. There is a well-known report of a spider's web across the mouth of the cave, and a tale of doves nesting there too. Scholars of hadith differ over the report of the web: Ibn Kathir judged its chain good, and others judged it weak. The tale of the doves is weaker still. So we tell the story as the Qur'an and the sound hadith tell it.

Year one

The Hijrah took place in 622 CE. Years later, in the time of 'Umar (may Allah be pleased with him), the Muslims chose it as the starting point of their calendar. So the year of the Hijrah is year 1 AH.

A desert road between two towns under a new crescent.How the Hijri calendar beganAbu Bakr as-Siddiq (may Allah be pleased with him)

Where this comes from

  • Qur'an 8:30
  • Qur'an 9:40
  • Sahih al-Bukhari 3905In brief: 'A'ishah (may Allah be pleased with her) told the story of the Hijrah. The Messenger of Allah ﷺ came to Abu Bakr's house at midday, at an hour when he never used to visit them, and told him that he had been given permission to leave. Abu Bakr asked to go with him, and offered him one of two camels he had been keeping ready; the Prophet ﷺ would take it only for its price. The family packed food for them, and Asma' bint Abi Bakr tore her waistband to tie the bag. The two reached a cave on Mount Thawr and stayed there three nights. 'Abdullah ibn Abi Bakr, a sharp young man, spent each night with them and was back among Quraysh by morning, bringing their news after dark. 'Amir ibn Fuhayrah brought the sheep by in the evening so that they had milk. They had hired a skilled guide, who met them at the cave with the two camels after three nights and led them by the road along the coast.
  • Sahih al-Bukhari 3653Abu Bakr (may Allah be pleased with him) said: I said to the Prophet ﷺ while I was in the cave: if one of them were to look down at his feet he would see us. He said: Abu Bakr, what do you think of two who have Allah as their third?
  • Ibn Hisham, As-Sirah an-Nabawiyyah, For the pledges of the people of Yathrib and the migration of the Muslims before him.
  • Ibn Kathir, Al-Bidayah wan-Nihayah, For the choice of the Hijrah as the start of the calendar, and Ibn Kathir's judgement on the report of the spider's web.
  • Ar-Raheeq al-Makhtum (Al-Mubarakpuri), For the dating of the Hijrah in the Common Era.

Simple meanings checked against: Saheeh International, The Clear Quran (Mustafa Khattab), At-Tafsir al-Muyassar.

Draft, being reviewed

Back to The Prophet Muhammad ﷺ