The Cave of Thawr and the Migration to Madinah

When persecution in Makkah reached its peak, Prophet Muhammad ﷺ and Abu Bakr (RA) slipped away by night and hid in the Cave of Thawr. This is the story of their secret journey, Allah's protection, and their warm welcome in Madinah.

The Cave of Thawr and the Migration to Madinah
The Cave of Thawr and the Migration to Madinah

In the thirteenth year of his mission, life in Makkah had become unbearable for Prophet Muhammad ﷺ and his followers. The persecution grew harsher every day, and the leaders of Quraysh were now planning to harm the Prophet ﷺ himself. When Allah gave him permission to leave Makkah, he chose his closest companion, Abu Bakr (RA), to travel with him on the most important journey of his life — the Hijrah to Madinah.

They left quietly in the darkness of night, travelling first toward the coast to confuse anyone who might follow their tracks, then turning back toward the north. Behind them, the Quraysh had announced a great reward for anyone who captured them. Ahead lay a long, dangerous road through the desert, but the two travellers carried something stronger than fear — complete trust in Allah.

The Night of the Migration

On the night of his departure, the Prophet ﷺ asked Ali ibn Abi Talib, his young cousin, to sleep in his bed wrapped in his green cloak. The young men of Quraysh were waiting outside the house, ready to strike in the morning. If anyone peeked through the door, they would think the Prophet ﷺ was still asleep. It was a brave act, and Ali accepted it without a moment of fear.

Meanwhile, Abu Bakr (RA) had prepared everything with great care and love. He had bought two strong camels for the journey, hired a trustworthy guide who knew every desert path, and arranged for his son Abdullah to bring news from Makkah and his daughter Asma to bring food. Nothing was left to chance — except that everything was placed in Allah's hands.

Inside the Cave of Thawr

Instead of heading straight north to Madinah, the two travellers went south to Mount Thawr. They climbed the mountain and hid inside a small cave near its top. The opening was so narrow that few would guess a man could pass through it. There they would wait for three nights, until the search parties gave up and returned home.

On the third morning, the searchers came so close that Abu Bakr (RA) could see their feet through the cracks between the rocks. His heart pounded. He whispered to the Prophet ﷺ, "If any of them looks down at his feet, he will surely see us." The Prophet ﷺ replied with the words that Muslims remember to this day: "Do not grieve. Allah is with us." And Allah protected them — the men stood at the mouth of the cave, looked around, and walked away.

The Arrival in Madinah

After three nights in the cave, the travellers began the long journey to Madinah with their guide. The desert road was hot and empty, but they travelled safely. Along the way, a horseman named Suraqah chased them, hoping to win the Quraysh's reward. Yet each time he drew near, his horse stumbled in the sand, until he realised this was no ordinary journey. He turned back, and even asked the Prophet ﷺ for his protection.

When they reached Quba, just outside Madinah, the Muslims came out to greet them with tears of joy. The Prophet ﷺ stayed there a few days and helped build Masjid Quba, the first mosque in Islam. Then he entered Madinah itself, where crowds of men, women, and children welcomed him with happiness. A new chapter in the history of Islam had begun.

The Hijrah was such a turning point that the Islamic calendar begins from this very year. What had started as a secret escape became the foundation of a new community.

Lesson of the Story

The story of the Cave of Thawr teaches us that true friendship means standing beside someone in the hardest moments. Abu Bakr (RA) gave up his home and his safety for the Prophet ﷺ, and the Prophet ﷺ trusted him with the most secret journey of his life.

It also teaches us that when we plan carefully, work hard, and place our trust in Allah, He protects us in ways we cannot imagine — just as He protected two travellers hiding in a small, dark cave.