Skip to content

Lesson 4 of 6

The hijrah: migration to Madinah

3 min read

The hijrah, the Prophet's migration from Makkah to Madinah in 622 CE, was so decisive that the companions counted the Islamic calendar from it (Sahih al-Bukhari 3934).

The journey

  1. In Makkah

    People from Yathrib, later called Madinah, accepted Islam and promised to protect him.

  2. Quietly

    The Muslims of Makkah began to migrate there, leaving their homes behind.

  3. The cave

    The Prophet left with Abu Bakr, may Allah be pleased with him, and they hid three nights in a cave on Mount Thawr (Sahih al-Bukhari 3905).

  4. Quba

    He stayed a little more than ten nights at Quba and founded its mosque.

  5. Madinah

    He rode into the city, with people walking alongside him (Sahih al-Bukhari 3906).

Two in the cave

The men of Quraysh came right up to the cave. Abu Bakr said: "O Messenger of Allah, if one of them looked below his feet, he would see us." The Prophet replied:

O Abu Bakr, what do you think of two persons, the third of whom is Allah?

Sahih al-Bukhari 3653 and Sahih Muslim 2381 (agreed upon)

Allah mentions this moment in the Quran:

Arabic: لَا تَحْزَنْ إِنَّ ٱللَّهَ مَعَنَا

How to say it: Laa tahzan, innal-laaha ma'anaa

Meaning: "Do not grieve; indeed Allah is with us."

Whatever you face as a new Muslim, these words are yours too.

Building the mosque

He built a mosque, today the Prophet's Mosque, and carried bricks himself alongside his companions (Sahih al-Bukhari 3906). It became the heart of the community.

Brothers in faith

The Muhajirun

  • The emigrants from Makkah
  • They had left almost everything behind

The Ansar

  • The helpers of Madinah
  • They welcomed the emigrants
  • The Prophet paired each emigrant with a helper as brothers

Allah praised the Ansar:

They love those who emigrated to them and find not any want in their breasts of what the emigrants were given but give [them] preference over themselves, even though they are in privation.

Quran 59:9 (part of the verse; Saheeh International translation of the meaning)

Many new Muslims find their own version of this brotherhood and sisterhood today: a friend at the masjid, a mentor, a family that welcomes you.

Quick check

What did the Prophet say to Abu Bakr in the cave when the searchers came close?

Remember

The hijrah turned a persecuted group into a community built on trust in Allah, with a mosque at its center and brotherhood between believers.

Next: life in Madinah, the conquest of Makkah, the farewell pilgrimage, and the Prophet's passing.

Verses and stories

The Quran describes the Prophet and Abu Bakr in the cave:

when they were in the cave and he said to his companion, "Do not grieve; indeed Allah is with us." And Allah sent down his tranquillity upon him and supported him with angels you did not see

Quran 9:40 (part of the verse; Saheeh International translation of the meaning)

Scholars explain that "Allah is with us" means He was with them with His help and support.

Anas ibn Malik, may Allah be pleased with him, who was a boy at the time, remembered the day the Prophet entered Madinah:

On the day the Messenger of Allah (may Allah's peace and blessings be upon him) entered Madīnah, everything therein became illuminated.

Sunan al-Tirmidhi 3618 (sahih, al-Albani)

The wall of the mosque facing the qiblah (the direction of prayer) was made of palm trunks (Sahih al-Bukhari 428).

Abd al-Rahman ibn Awf, may Allah be pleased with him, was paired with Sa'd ibn al-Rabi', may Allah be pleased with him, who offered to give him half of his wealth. Abd al-Rahman replied that he did not need it and asked where the market was, and he began to trade (Sahih al-Bukhari 2048).

Abu Bakr's daughter Asma, may Allah be pleased with her, tied the food bag closed with a piece torn from her own waistband.

The word hijrah means migration. It came thirteen years after the first revelation.

Sources (9)

Keep going

Up next: Madinah, the conquest of Makkah, and the farewell

Step 2: The life of the Prophet, 4 min

Continue

Create a free account to save your progress.

Was this helpful?