The Hijrah: Migration to Medina
الهجرة إلى المدينة
# The Hijrah to Medina
The Migration That Defined History
The Hijra — the Prophet's ﷺ migration from Mecca to Yathrib in the first year of what would become the Islamic calendar — is the pivotal event in Islamic history. It is so foundational that Umar ibn al-Khattab, during his caliphate, chose it as the starting point of the Islamic calendar upon the advice of Ali ibn Abi Talib: not the birth of the Prophet ﷺ, not the first revelation, but the Hijra — the moment at which the Muslim community transitioned from a persecuted minority to a governing entity with a territorial base.
The Prophet ﷺ left Mecca with Abu Bakr in the first days of Rabi al-Awwal (approximately September 622 CE) after three nights in the cave of Thawr. They traveled with the guide Abd Allah ibn Urayqit along the coastal route — south of Mecca initially, then north along the Red Sea coast before turning inland — a longer and more difficult path than the direct road to Yathrib, deliberately chosen to avoid the Qurayshi search parties who had placed a hundred-camel reward on the Prophet's ﷺ head.
The Journey
The journey from the cave of Thawr to Yathrib covered approximately three hundred miles and took approximately fourteen days. Ibn Hisham records several episodes from the journey. The most famous is the encounter with Suraqa ibn Malik al-Mudlij, a skilled tracker from the Banu Mudlij, who recognized the Prophet ﷺ and his companion and set out in pursuit of the hundred-camel reward. His horse stumbled and fell three times as he approached. Suraqa read this as a sign and called out to the Prophet ﷺ, asking for security. The Prophet ﷺ gave it. Suraqa asked for a written guarantee. Amr ibn Fuhayna wrote one on a bone or a piece of skin. Suraqa then offered to mislead any other pursuers who came his way — and kept his word. He accepted Islam at the Conquest of Mecca eight years later, and presented the written guarantee to the Prophet ﷺ. The Prophet ﷺ confirmed it and said to Suraqa — with what can only be understood as prophetic vision — "How will it be for you, Suraqa, when you wear the bracelets of Khosrow?" Suraqa expressed astonishment. He would later wear the bracelets of the Persian emperor in the caliphate of Umar ibn al-Khattab, when the conquest of Persia brought the empire's treasures to Medina.
The Waiting City
In Yathrib, the Muslims who had preceded the Prophet ﷺ had been going to the outskirts of the city every morning for weeks, waiting for him, watching the road from Mecca. When news arrived that he had been spotted approaching, the city prepared. People climbed to their rooftops. The arrival of the Prophet ﷺ in Yathrib is described in multiple narrations as accompanied by expressions of joy that the city had not seen before — songs from the Ansar women and children, crowds pressing to see him, people offering hospitality at every step of the road.
The specific hadith from Anas ibn Malik — who was a young boy in Medina at the time and who would become the Prophet's ﷺ personal servant for the rest of his life — describes the day with personal immediacy: "I never saw a day more beautiful or more luminous than the day the Messenger of Allah ﷺ arrived in Medina." The city was changed in a moment. The community it had been waiting for had arrived.
What the Hijra Established
The Islamic calendar begins with the Hijra — not with the month of the Hijra itself but with the first month of the year in which it occurred: Muharram of 1 AH. Umar ibn al-Khattab, when establishing the calendar approximately sixteen years after the event, chose the Hijra as the anchor because it was, in his and Ali's understanding, the moment at which the Muslim community came into its own existence as an organized, politically autonomous entity. Everything before it was the foundation; everything after it was the building.
The Hijra is not merely a historical event — it is a theological category in Islam. "Those who believed and migrated and strove in the way of Allah with their wealth and their lives" is one of the most repeated phrases the Quran uses to describe the first generation of Muslims. The Muhajirin — those who migrated — are distinguished by this act throughout the Quran, and the act itself is described as one of the highest forms of worship: placing the love of Allah and His Messenger above the love of one's homeland, one's property, and one's social standing.
Every Muslim who has ever left a land where they could not practice their faith, and moved to one where they could, stands in a tradition that traces back to this journey — three hundred miles of desert, a cave, a spider web, and a hundred-camel reward that was never collected.
From Yathrib to al-Medina al-Munawwarah
The Prophet ﷺ arrived in Yathrib and the city was never Yathrib again. He renamed it al-Madinah — the City — and over his ten years there it became al-Madinah al-Munawwarah: the Illuminated City. The name Medina, in time, became synonymous with the city itself without any further qualification, understood throughout the Islamic world as the place where the Prophet ﷺ lived, governed, prayed, and died.
The community that formed in Medina after the Hijra — the Muhajirin who had left Mecca and the Ansar who had received them — became the core of the prophetic generation, the companions who would carry Islam from the Arabian Peninsula to the rest of the world within a generation of the Prophet's ﷺ death. The Hijra was the seed of all of it.
The Suraqa Encounter and the Limits of Human Pursuit
The encounter with Suraqa ibn Malik contains within it a lesson the seerah repeatedly teaches: human opposition to the divine mission operates within limits set by Allah. Suraqa was the most skilled tracker in his area, motivated by the largest reward on offer, closing in on two men traveling through open terrain. His horse fell three times. He was stopped not by force but by something he experienced as unmistakably directed — and he read it correctly. His request for the written guarantee, kept for eight years and presented at the Conquest of Mecca, is one of the most beautiful examples of the long arc of prophetic relationships: an adversary became a Muslim became a man who wore the bracelets of Khosrow, exactly as he had been told he would.
Sources: Sahih al-Bukhari (Kitab Manaqib al-Ansar, Kitab al-Hijra); Sahih Muslim (Kitab al-Hijra); Ibn Hisham, al-Sira al-Nabawiyya; Ibn Kathir, al-Bidayah wan-Nihayah; Ibn Sa'd, al-Tabaqat al-Kubra
Sources
- Sahih al-Bukhari
- Sahih Muslim
- Surah at-Tawbah (9:40)
- Ibn Hisham's Sirah