For parents · Seerah
The Hijrah for kids: the Prophet’s ﷺ journey from Makkah to Madinah
The short answer
The Hijrah is the journey Prophet Muhammad ﷺ made from Makkah to Madinah in 622 CE, after the leaders of Makkah plotted against him. He travelled with Abu Bakr radiyallahu anhu, hid in the cave of Thawr for three nights, and was welcomed with joy in Madinah. The Islamic calendar counts its years from the Hijrah.
The Hijrah is a story of courage, friendship and a whole city waiting at its gates. It explains why Madinah is called the City of the Prophet ﷺ and why the Islamic calendar begins where it does. Here it is in simple steps, from the Qur’an and Sahih al-Bukhari, to read aloud with your child.
What does Hijrah mean?
Hijrah means migration: leaving your home for the sake of Allah. For thirteen years in Makkah, the Prophet ﷺ called people to worship Allah alone, and many of the Quraysh hurt him and the Muslims for it. Meanwhile, people from the city of Yathrib accepted Islam and invited him to come and live with them. Abu Ayyub al-Ansari radiyallahu anhu was one of them; his story is Abu Ayyub Welcomes the Prophet (Book 35). One by one, the Muslims of Makkah left for Yathrib.
Why did the Prophet ﷺ leave Makkah?
The leaders of Makkah made a plan to stop him, even to kill him. Allah tells us: they planned, and Allah planned, and Allah is the best of planners (Qur’an 8:30). Allah allowed His Messenger ﷺ to leave.
The books of seerah tell how, that night, he asked his young cousin Ali ibn Abi Talib radiyallahu anhu to sleep in his bed, and to give back the valuables people had left with him for safekeeping. Even his enemies trusted him with their things. The Night of Courage and Trust (Book 88) tells this part.
What happened in the cave of Thawr?
The Prophet ﷺ went to the house of his best friend, Abu Bakr radiyallahu anhu, and told him that Allah had given permission to leave. Abu Bakr asked, “Can I come with you?” and the Prophet ﷺ said yes. Abu Bakr’s daughter Asma packed food for the journey and, with nothing to tie the bag, cut her own waistband in two to fasten it (Sahih al-Bukhari).
They hid in a cave on Mount Thawr for three nights. Abu Bakr’s son Abdullah slept near them and went back to Makkah before dawn to listen for news, and Abu Bakr’s shepherd, Amir ibn Fuhayrah, brought his sheep by in the evening so they could drink milk (Sahih al-Bukhari).
The searchers came right up to the cave. Abu Bakr whispered that if one of them looked down at his feet, he would see them. The Prophet ﷺ said, “What do you think of two, when Allah is the third?” (Sahih al-Bukhari, Sahih Muslim). Allah tells of this moment in the Qur’an: “Do not be sad. Allah is with us” (Qur’an 9:40).
What happened on the road to Madinah?
The Quraysh offered a big reward to anyone who caught them. A horseman called Suraqah rode after them, but each time he came near, his horse’s legs sank into the ground. He understood that they were being protected, asked them for safety, and turned back (Sahih al-Bukhari).
At Quba, just outside the city, the Prophet ﷺ stayed with the family of Amr ibn Awf for some days and founded a masjid there (Sahih al-Bukhari). It is the first masjid built in Islam, and the subject of Visiting Masjid Al-Quba (Book 92).
How did Madinah welcome the Prophet ﷺ?
Every morning the Muslims of Madinah had walked out to the edge of the city to look for him, and gone home only when the sun grew too hot (Sahih al-Bukhari). When he finally arrived, people climbed onto the rooftops, and children ran through the streets calling, “Ya Muhammad! Ya Rasulallah!” (Sahih Muslim). A Companion who was there said he had never seen the people of Madinah so happy about anything (Sahih al-Bukhari).
Everyone wanted the Prophet ﷺ to stay with them. His camel knelt on a piece of land owned by two orphan boys, and there he built his masjid, Masjid an-Nabawi, carrying bricks with his own hands (Sahih al-Bukhari). Abu Ayyub, whose house was nearest, said, “This is my house, and this is my gate” (Sahih al-Bukhari). The Prophet ﷺ stayed on the ground floor, and Abu Ayyub and his wife lived upstairs (Sahih Muslim).
A scholar of Madinah called Abdullah ibn Salam came to see him. The first words he heard the Prophet ﷺ say were: spread salam, feed people, and pray at night while others sleep, and you will enter Paradise in peace (at-Tirmidhi). His story is Abdullah bin Salam Meets the Prophet (Book 82), and Let Us Visit Madinah (Book 17) tells children more about the city itself.
Who were the Ansar and the Muhajirun?
The Muhajirun were the Muslims who left Makkah, often with nothing. The Ansar, the Helpers, were the Muslims of Madinah. The Prophet ﷺ made them brothers. Sa’d ibn ar-Rabi’ of the Ansar offered his new brother Abd ar-Rahman ibn Awf half of everything he owned. Abd ar-Rahman thanked him and asked only, “Show me the way to the market,” and started to trade (Sahih al-Bukhari). Allah praises the Ansar for loving those who came to them and putting them before themselves (Qur’an 59:9).
What does the Hijrah teach children?
- Trust Allah when you are afraid. “Allah is with us” is a sentence a child can say in any scary moment.
- Be a true friend. Abu Bakr gave his help, his family and his courage.
- Everyone can help. Asma, Abdullah and a shepherd all had a part to play.
- Welcome people warmly. The Ansar opened their homes and shared what they had.
- Keep your promises. Even while leaving in danger, the Prophet ﷺ made sure every trust was returned.
Questions to ask your child
- Why did the Prophet ﷺ have to leave Makkah?
- What did Asma do when there was nothing to tie the food bag?
- What did the Prophet ﷺ say to Abu Bakr in the cave?
- How did the children of Madinah welcome the Prophet ﷺ?
- If a new child joined your class, how could you be like the Ansar?
What age is this for?
Ages 4 to 6: tell three scenes: the cave and “Allah is with us”, the camel kneeling, and the children cheering. Ages 7 to 11: add the plot in Makkah, Suraqah, the brotherhood of the Ansar and Muhajirun, and why the calendar starts here. It is a natural story to tell at the start of each Islamic year.
Series 01 tells the Hijrah through the people in it: The Night of Courage and Trust (Book 88), Abu Ayyub Welcomes the Prophet (Book 35) and Visiting Masjid Al-Quba (Book 92). To try ilmbee’s narrated books first, read 3 books free.
The books in this guide
From ilmbee Series 01, 100 illustrated books read in order. The first 3 are free to read.
Frequently asked questions
What is the Hijrah in simple words?
The Hijrah is when Prophet Muhammad ﷺ and the Muslims moved from Makkah to Madinah, because the people of Makkah were hurting them and planning to harm the Prophet ﷺ. In Madinah they could worship Allah in peace.
Who went with the Prophet ﷺ on the Hijrah?
His closest friend, Abu Bakr as-Siddiq radiyallahu anhu, travelled with him. Abu Bakr’s children Asma and Abdullah, and his shepherd Amir ibn Fuhayrah, helped them while they hid in the cave (Sahih al-Bukhari).
How long did the Prophet ﷺ stay in the cave of Thawr?
Three nights (Sahih al-Bukhari). When Abu Bakr worried that the searchers would see them, the Prophet ﷺ said, “What do you think of two, when Allah is the third?” (Sahih al-Bukhari, Sahih Muslim).
Is the story of the spider’s web at the cave true?
The Qur’an and Sahih al-Bukhari tell us that Allah protected them in the cave, without describing how. Scholars of hadith differ over the strength of the narrations about a spider’s web and doves, so this guide keeps to what is in the Qur’an and the Sahih collections.
Why does the Islamic calendar start from the Hijrah?
The Companions chose to count the years from the Prophet’s ﷺ arrival in Madinah, not from his birth or his death (Sahih al-Bukhari). That is why Islamic years are written AH, after the Hijrah.
Sources
Qur'an references are given as surah:ayah, with the meaning in plain English. Hadith are from the collections named.
- Qur'an 8:30 (Al-Anfal): the disbelievers plotted to restrain him, kill him or drive him out; they planned, and Allah planned, and Allah is the best of planners.
- Qur'an 9:40 (At-Tawbah): the second of two in the cave, when he said to his companion, “Do not grieve; Allah is with us.”
- Qur'an 59:9 (Al-Hashr): the Ansar love those who emigrated to them and prefer them over themselves.
- Sahih al-Bukhari 3905: the Hijrah of the Prophet ﷺ and Abu Bakr; Asma tied the provisions with her waistband; three nights in the cave of Thawr; Abdullah ibn Abi Bakr brought news and Amir ibn Fuhayrah brought milk.
- Sahih al-Bukhari 3906: Suraqah's horse sinks; the Muslims of Madinah wait each morning; the stay with Banu Amr ibn Awf at Quba and the masjid founded there; the camel kneels at the land of two orphans, where the Prophet's Masjid was built.
- Sahih al-Bukhari 3653; Sahih Muslim 2381: “What do you think of two, when Allah is the third?”
- Sahih al-Bukhari 3925: the people of Madinah never rejoiced at anything as they rejoiced at his arrival.
- Sahih Muslim 2009: people on the rooftops and children in the streets calling “Ya Muhammad, ya Rasulallah.”
- Sahih al-Bukhari 3911: Abu Ayyub, “This is my house, and this is my gate.”
- Sahih Muslim 2053: the Prophet ﷺ stayed on the lower floor of Abu Ayyub's house, and Abu Ayyub upstairs.
- Jami' at-Tirmidhi 2485 (graded sahih): Abdullah ibn Salam heard him say, spread salam, feed people, pray at night while people sleep, and you will enter Paradise in peace.
- Sahih al-Bukhari 2049: the brotherhood of Abd ar-Rahman ibn Awf and Sa'd ibn ar-Rabi'.
- Sahih al-Bukhari 3934: the Companions counted the calendar from his arrival in Madinah.
- For scholar review: Ali ibn Abi Talib sleeping in the Prophet's bed and returning the trusts left with him is from the seerah (Ibn Ishaq, via Ibn Hisham) and Musnad Ahmad 3251; scholars differ over the chains. ilmbee Book 88 tells it.




