What the Hijrah was
The Hijrah (literally “migration” or “leaving”) is the move of the Prophet Muhammad ﷺ from Makkah to Madinah, a city that was then called Yathrib. After years of calling people to Islam in Makkah, he and the Muslims faced growing hostility. People from Yathrib had accepted Islam and promised to protect him, so the Muslims began to leave for their city, a few at a time.
The Prophet ﷺ was one of the last to go. The Muslims who left their homes are known as the Muhajirun (the emigrants), and the Muslims of Madinah who took them in are the Ansar (the helpers).
From Makkah to Madinah
Much of what we know comes from a long narration by ‘A’ishah, Abu Bakr’s daughter, in Sahih al-Bukhari. In simple outline:
A careful plan
Abu Bakr had two camels ready. They hired a guide who knew the desert routes, though he was not a Muslim, and agreed to meet him at the cave after three nights.
The cave of Thawr
The Prophet ﷺ and Abu Bakr left Makkah and hid in a cave on Mount Thawr for three nights.
A family that helped
Abu Bakr’s son ‘Abdullah, still a young man, spent the nights with them and brought news from Makkah. Abu Bakr’s daughter Asma’ prepared their food and tore her waistband in two to tie it up. ‘Amir ibn Fuhayrah, who looked after Abu Bakr’s sheep, grazed them nearby so they had milk.
Danger at the cave
The people searching for them came close to the cave. Abu Bakr was afraid for the Prophet ﷺ, and the Prophet ﷺ reassured him that Allah was with them.
Quba and then Madinah
They reached Quba, just outside Madinah, where the Prophet ﷺ stayed some days and founded its mosque. Then he entered Madinah, where people came out to welcome him.
The Qur’an itself recalls that moment in the cave:
﴿لَا تَحْزَنْ إِنَّ ٱللَّهَ مَعَنَا﴾
Meaning: Do not grieve; indeed, Allah is with us.
In Madinah, the Prophet ﷺ built his mosque on land he paid for, although its owners, two orphan boys, offered it as a gift. He then paired emigrants with men of the Ansar as brothers. One of the Ansar, Sa‘d ibn ar-Rabi‘, offered half of what he owned to his new brother, ‘Abd ar-Rahman ibn ‘Awf. ‘Abd ar-Rahman thanked him and asked only to be shown the way to the market, so he could work.
Why the Islamic calendar starts with the Hijrah
During the caliphate of ‘Umar ibn al-Khattab, the Muslim state needed a clear way to date its letters and records. The Companions discussed several starting points and agreed on the year of the Hijrah, the moment the Muslims became a community living freely in their own city. They kept Muharram as the first month of the year, so the Hijri new year begins on the first of Muharram. The Prophet ﷺ himself reached Madinah in Rabi‘ al-Awwal; Muharram was kept as the start of the year.
Because the Hijri year follows the moon, Ramadan, Hajj and the new year move through the seasons over a child’s lifetime; Understanding the Islamic calendar explains why.
Seven lessons for families
Each lesson comes with one small idea for children. Choose one or two rather than all seven at once.
Rely on Allah
In the cave, the Prophet ﷺ was calm because he relied on Allah. With children: when they are nervous about a test or a new class, say together “Allah is with us”, then do your part.
Plan and make an effort
Trust did not replace planning: camels, a guide, food and a hiding place were all arranged. With children: let them plan something small, like a family trip, and talk about how we prepare and still rely on Allah.
Choose good friends
Abu Bakr stood by the Prophet ﷺ when it was dangerous. With children: ask what makes a good friend and who has been one to them this year.
Give everyone a part
Young ‘Abdullah, Asma’ and a shepherd all played a role. With children: give each child a real job at home and thank them for it by name.
Be fair
The Prophet ﷺ paid for the land of his mosque rather than take it as a gift from two orphans. With children: talk about returning what we borrow and never taking what isn’t ours, even small things.
Welcome others
The Ansar shared their homes with people who had left everything. With children: invite a new family from school or the mosque, or prepare a small gift for a neighbour.
Begin again
The Hijrah was a fresh start. With children: at the new year, let each person choose one good habit to begin, such as a short surah to learn or a daily kindness.
The story at each age
- Ages 4–6: keep it short and visual. The Prophet ﷺ and his friend travelled to a new city, hid in a cave and were welcomed with joy.
- Ages 7–10: add the people. Asma’ and her waistband, ‘Abdullah bringing news, the guide and the welcome in Madinah.
- Ages 11 and over: talk about why people leave their homes, what the Ansar gave up and why the Companions chose this moment to start the calendar.
- Any age: draw a simple map from Makkah to Madinah, or act out the welcome with younger children.
If your child studies Islamic Manners with Radiance, you can ask us to focus on the Seerah, so the teacher tells the story at your child’s level. That way it is more than a once-a-year conversation.
Questions parents ask
What does Hijrah mean?
Hijrah means migration or leaving. In Islamic history it refers to the move of the Prophet ﷺ from Makkah to Madinah, which marks the start of the Islamic calendar.
Why does the Islamic calendar start with the Hijrah?
In the time of ‘Umar ibn al-Khattab, the Companions agreed to count the years from the Hijrah, when the Muslims became a community living freely in Madinah. Muharram was kept as the first month.
Is the story of the spider and the dove at the cave true?
It is widely told, but it is not in Sahih al-Bukhari or Sahih Muslim, and scholars of hadith differ on how reliable it is. The well-documented parts of the story are enough for children.
Who were the Muhajirun and the Ansar?
The Muhajirun were the Muslims who left Makkah for Madinah, and the Ansar were the Muslims of Madinah who took them in. Their brotherhood is one of the most loved parts of the story.
How do I explain the Hijrah to a young child?
Tell it as a short story: the Prophet ﷺ and his friend travelled to a new city, hid in a cave, relied on Allah and were welcomed with joy. Add more detail as your child grows.
Sources
- The Qur’an, At-Tawbah 9:40
- Sahih al-Bukhari 3905–3906 (the Hijrah, narrated by ‘A’ishah)
- Sahih al-Bukhari 2048 (‘Abd ar-Rahman ibn ‘Awf and Sa‘d ibn ar-Rabi‘)

