The Hijra

الهجرة النبوية

c. 12 September 622 CE · c. 29 Safar 1 AH† – 24 September 622 CE · 12 Rabi' I 1 AH †

† Hijri date derived by computation from the Gregorian/Julian date; it may differ from the transmitted date by a day or two.

Mecca → Ghar Thawr (Cave of Thawr) → Quba → Medina

The migration of the Prophet ﷺ Muhammad and his followers from Mecca to Medina in 622 CE, the event from which the Islamic calendar is counted.

Depth

At a glance

Era
The Prophetic Era
Region
Arabia
Identifiers
Wikidata
Review
Draft Completeness 3/5 · Help complete it

In time

610620630640 c.
Pre-Islamic Arabia · The Prophetic Era · The Rashidun Caliphate

In space

MeccaGhar Thawr (Cave of Thawr)QubaMedina

Map: Natural Earth, public domain · places and route from the graph

Refugees, migrants and diasporaSacred time

On screen

Reading levelRead it in the Kids' Wing

In the year 622, the Prophet ﷺ Muhammad travelled from Mecca to Medina. His friend Abu Bakr travelled with him. The journey through the desert was long. He reached Medina in the autumn, and the people were happy to see him. The Hijri calendar begins with this journey, and it is called the Hijra. When someone says "the year 1447 AH", they are counting the years from it.

In 622 the Prophet ﷺ Muhammad and his companions had lived through hard years in Mecca. A group of people came from a town called Yathrib and promised to protect the Prophet and welcome his companions. The Muslims began to travel from Mecca to Yathrib in small groups. Then the Prophet set out with his friend Abu Bakr. They stayed in a cave on a mountain for three nights, and Asma, Abu Bakr's daughter, brought them food. After a long journey through the desert they reached Quba, at the edge of the town. The Prophet then entered the town and stayed in the house of Abu Ayyub al-Ansari (may God be pleased with him), and Ali ibn Abi Talib (may God be pleased with him) joined him a short time later. The town got a new name, Medina, and became the first community of the Muslims. About fifteen years later the caliph Umar made the Muslim calendar begin from the year of this journey, which is why we say "the Hijri year".

Storytellers (10–12) read the Explorers text, then cross to the Scholars text.

The Hijra is the move of the Prophet ﷺ Muhammad and his companions from Mecca to Yathrib, which came to be known as Medina, in 622 CE. Years of harm in Mecca came before it, then the two pledges of Aqaba, in which a delegation from Yathrib undertook to protect the Prophet, and his companions began to leave for the town in small groups. The sira books relate that the Prophet left with Abu Bakr by night, that the two stayed three nights in the cave of Thawr, where Abdullah ibn Abi Bakr (may God be pleased with him) brought them news and Asma bint Abi Bakr (may God be pleased with her) brought them food, and that they then travelled to Medina with a guide named Abdullah ibn Urayqit. The Prophet reached Quba on the outskirts of Medina; the traditional date is 12 Rabi' al-Awwal of the first year. He then entered the town and stayed with Abu Ayyub al-Ansari (may God be pleased with him), and Ali ibn Abi Talib (may God be pleased with him) joined him a short time later. Historians debate the exact sequence of days, so the museum marks these dates as traditional. The Hijra was a turning point: the community that formed in Medina became the first Islamic political entity. About fifteen years later the caliph Umar ibn al-Khattab (may God be pleased with him) made the start of the Islamic calendar the first of Muharram of the year of the Hijra, which corresponds to 16 July 622 in the Julian calendar; this is why it is called the Hijri calendar.

Overview

In 622 CE the Prophet Muhammad and many of his companions moved from Mecca to Medina. The Muslims later chose this migration as the starting point of their calendar.

What happened

After years of hardship in Mecca, a delegation from Medina (which was then called Yathrib) pledged to protect the Prophet. His companions began to leave Mecca for the oasis in small groups. The Prophet left with Abu Bakr and reached the outskirts of Medina in autumn 622 CE. Ali ibn Abi Talib joined him a short time later. 1

The traditional date for arrival at Quba is 12 Rabi' al-Awwal of the first year AH. Historians debate the exact sequence of events, so the dates here are marked as traditional. 2

Significance

The community that formed in Medina became the first Islamic political entity. About fifteen years later, the caliph Umar made the start of the Hijri calendar the first of Muharram of that year, which corresponds to 16 July 622 CE in the Julian calendar.

For young visitors

The Hijra is the journey with which a new calendar began. When someone says "year 1447 AH," they are counting the years from it.

Stages in detail (The Sealed Nectar pp.161–174)

From Sheikh Omar Abdelkafy's Tafsir lectures (episode 4)

The Sheikh says that when the two entered the cave, two days later they were in Yathrib, and that the state arose from that cave 5.

Your choice is kept in this browser only.

Connections

Explore the connections

Had participant
Abdullah ibn Abbas· Abdullah ibn Abi Bakr· Abdullah ibn Mas'ud· Abdullah ibn Urayqit· Abu Ayyub al-Ansari· Abu Bakr al-Siddiq· Abu Burayda al-Aslami· Abu Dharr al-Ghifari· Abu Ubayda ibn al-Jarrah· Aisha bint Abi Bakr· Ali ibn Abi Talib· Amir ibn Fuhayra· Asma bint Abi Bakr· Bilal ibn Rabah· Hafsa bint Umar· Muhammad· Sa'd ibn Abi Waqqas· Suraqa ibn Malik· Umar ibn al-Khattab· Umm Ma'bad· Umm Salama (Hind bint Abi Umayya)· Umm Sharik al-Dawsiyya· Uthman ibn Affan· The early Muslim community· The Muhajirun· al-Zubayr ibn al-Awwam· Kulthum ibn al-Hidm· As'ad ibn Zurara· Sawda bint Zam'a
Led to
The Battle of Badr· The brotherhood of the Muhajirun and Ansar· The change of the qibla· The Constitution of Medina· The prescription of the Ramadan fast· The marriage of Fatima and Ali· The building of the Prophet's Mosque
Caused by
The emigration of the Muslims to Yathrib after the pledge· The journey from the cave of Thawr to Medina and the entry into the city· The Prophet's escape from his house on the night of the Hijra and the hiding in the cave of Thawr· The Pledges of Aqaba
Has part
The first Friday prayer· The three nights in the cave of Thawr· The departure night of the Hijra· The Hijra route· The sojourn at Quba
Occurred at
Mecca· Ghar Thawr (Cave of Thawr)· Quba· Medina
Part of
The Prophetic Era
Basis for
The Hijri calendar
Mentioned in
Qur'an 9:40· Qur'an 36:9· Qur'an 66:4· Bukhari 3905 — The long hijra narrative· Muslim 1864 — No emigration after the conquest, but jihad and intention
Related to
The periods and stages of the Prophet's call
Subject of
The Message

People and things also explored

Muhammad· Medina· Mecca· Abu Bakr al-Siddiq· The early Muslim community· The Battle of Badr· The Prophetic Era· The three years of the secret call

Sources

  1. Ibn Ishaq / Guillaume, The Life of Muhammad (1955)
  2. Watt, Muhammad at Medina (1956)
  3. al-Raheeq al-Makhtum — Safi al-Rahman al-Mubarakpuri , p.161
  4. al-Raheeq al-Makhtum — Safi al-Rahman al-Mubarakpuri , p.174
  5. Assabile archive of Omar Abdelkafy's lectures (audio and video) , Tafsir Al Quran Al Qareem, episode 4, at 00:31:30 · Listen at the archive (opens the audio at this time)
  • al-Sira al-Nabawiyya — Ibn Hisham
  • Sahih al-Bukhari
  • Zad al-Ma'ad — Ibn Qayyim al-Jawziyya
  • Muruj al-Dhahab — al-Masʼudi
Cite this page

islam.museum contributors. “The Hijra”. islam.museum, https://islam.museum/en/event/hijra/. CC BY-SA 4.0. Last updated 2026-10-25.

Improve this page on GitHub · Report an error · JSON

Wing

Time

Eras, timelines, this day in history, any year in the Islamic world.
Related

Muhammad

The Prophet of Islam (c. 570–632 CE), through whom Muslims believe the Qur'an was revealed, and the founder of the first Muslim community in Medina.