877-225-2251

The Hijra: The Story of the Prophet ﷺ’s Migration to Medina

In 622 CE, something happened that would change the course of history. A small community of Muslims, facing years of persecution in Mecca, made a journey across the desert to a city called Medina. The Prophet Muhammad ﷺ led that journey. And the Islamic world has measured time from that moment ever since.

The Hijra — the migration — is one of the most significant events in Islamic history. Not because of its size or spectacle, but because of what it meant: an act of courage, of unwavering trust in Allah ﷽, and of beginning again from nothing.

Why Did the Prophet ﷺ Leave Mecca?

The early Muslim community had endured years of severe hardship in Mecca. They were boycotted, mocked, and some were tortured or killed for their faith. The Prophet ﷺ lost two of his most beloved protectors in the same year — his wife Khadijah RA and his uncle Abu Talib — a period known as the Year of Sorrow. Without their protection, the leaders of Mecca grew bolder.

Eventually, they agreed on a plan to assassinate the Prophet ﷺ — having representatives of every major tribe strike simultaneously, so that no single clan could be held responsible. On the night the plot was to be carried out, the Prophet ﷺ left his home. His cousin Ali RA willingly lay in his bed as a decoy, offering his own life in place of the Prophet’s.

The Cave of Thawr

Rather than heading directly north, the Prophet ﷺ and his closest companion Abu Bakr RA sheltered first in the Cave of Thawr, south of Mecca, for three days. Search parties came so close to the cave that Abu Bakr RA trembled. The Prophet ﷺ said to him: “Do not grieve. Indeed, Allah is with us.” (Quran 9:40)

According to Islamic tradition, a spider had woven a web across the cave entrance and a bird had nested there — natural signs convincing the searchers no one had entered. The group moved on. Three days later, the Prophet ﷺ and Abu Bakr RA continued their journey north.

The spirit of the Hijra is one of courage and trust. Give where it is needed most and carry that spirit forward.

One Ummah Mercy Package  |  Gaza Emergency  |  Orphan Sponsorship

Arriving in Medina

The journey from the cave to Medina took around eight to ten days, guided by a hired tracker who was not yet Muslim. When the Prophet ﷺ reached the outskirts of Medina, he stopped at a place called Quba and established the first mosque in Islam. When he entered the city itself, the welcome was extraordinary. Families came out into the streets. People offered their homes. A community that had been waiting for him, the Ansar — the helpers — opened their arms completely.

What the Hijra Built

In Medina, the Prophet ﷺ built something new: an Ummah — a community — that cut across tribal loyalties. The Constitution of Medina, one of the earliest recorded constitutional documents in history, established rights for neighbours, for people of different faiths, and for those who had previously been enemies. The Ansar shared their homes, their wealth, and their food with people who had arrived with almost nothing.

Their generosity became a model that has echoed down through 1,400 years of Islamic tradition.

Why the Hijra Still Matters

The Hijra was, among other things, a story of people forced to leave everything they knew in search of safety. That story has not ended. Today, millions of families around the world are living through their own version of displacement — not by choice, but because staying was no longer possible.

The spirit of the Ansar — the spirit of welcoming, of giving generously to people who arrive with nothing — is not something that belongs only to the 7th century. It is a living ideal. And one that each of us can express, in our own way, through what we choose to give.

The Hijra and the Islamic Calendar

When Umar ibn al-Khattab RA established the Islamic calendar, he chose the year of the Hijra as its starting point — not the Prophet’s birth, not the first revelation, not the conquest of Mecca. The Hijra: a journey made with nothing but faith. Every Islamic year begins as a small reminder of that.

The spirit of the Ansar was to give generously to those who arrived with nothing. That spirit is one any of us can honour.

One Ummah Mercy Package  |  Gaza Emergency  |  Orphan Sponsorship

Sources

  • Quran, Surah At-Tawbah (9:40)
  • Ibn Hisham, Sirat Rasul Allah (The Life of the Prophet)
  • Sahih Bukhari — accounts of the Hijra
  • Britannica.com — Hijrah: History, Definition and Importance
  • IslamOnline.net — How the Prophet’s Migration Changed the Course of History
Back to news

Error

Close