All of the Seerah

The Seerah · Day 30 · Building Madinah

The Madani era begins

Allah's house before his own

Rabi al-Awwal, 1 AH (September 622) Madinah
Retold from Dr. Yasir Qadhi's Seerah seriesWatch the original

Day 29 paused at the gates with a map of the oasis: two peoples, five tribes, one city waiting. Today the gates open. Day 30 of Dr. Yasir Qadhi's seerah is the true beginning of the Madani era, and it begins the way no empire ever began: with a head count, a command that emptied Makkah of its believers, and a camel no one was allowed to steer.

Before this day ends, an old man will die at the edge of Makkah with his pledge pressed between his own two hands, five hundred warriors in armor will walk at a camel's pace, and a masjid of palm trunks and clay will rise from a date-drying yard. And the Prophet ﷺ will sleep half a year in a borrowed room, because Allah's house comes before his own.

Three peoples, one head count

Count the oasis the way the lecture counts it. Three communities now share Madinah: the Ansar, the hosts; the muhajirun, arriving in waves; and the Yahud, the three Jewish tribes of the last episode. Each Jewish tribe fielded around seven hundred men, two thousand or so in all, and the demographers of that age multiplied a fighting man by three for the women and children: roughly six thousand souls. The Ansar would one day march four thousand men to the conquest of Makkah, so call them twelve thousand. For every one of the Yahud, roughly two Arabs.

And the muhajirun? At Badr, when nearly every emigrant alive marched out, they numbered eighty two men. With the women and children, perhaps three or four hundred souls in the whole city: the smallest community in Madinah, and the poorest, having left everything they owned behind.

Yet whenever the Qur'an names the two groups together, the muhajirun come first. Allah counts differently than a census does: what a person abandoned for Him weighs more than how many stand beside him. Tuck this arithmetic away, because it returns on the hardest day of the whole story: when the Prophet ﷺ passes, some of the Ansar will feel it only natural that the majority should lead, and Allah will open the truth on the tongues of Abu Bakr and Umar, and the ummah will follow the few. The series will reach that day.

The command that emptied Makkah

وَالَّذِينَ هَاجَرُوا فِي سَبِيلِ اللَّهِ ثُمَّ قُتِلُوا أَوْ مَاتُوا لَيَرْزُقَنَّهُمُ اللَّهُ رِزْقًا حَسَنًا ۚ وَإِنَّ اللَّهَ لَهُوَ خَيْرُ الرَّازِقِينَ لَيُدْخِلَنَّهُم مُّدْخَلًا يَرْضَوْنَهُ ۗ وَإِنَّ اللَّهَ لَعَلِيمٌ حَلِيمٌ

“And those who emigrated for the cause of Allāh and then were killed or died - Allāh will surely provide for them a good provision. And indeed, it is Allāh who is the best of providers. He will surely cause them to enter an entrance with which they will be pleased, and indeed, Allāh is Knowing and Forbearing.”

Surah al-Hajj 22:58-59 Read 22:58 with tafsir

وَمِنَ النَّاسِ مَن يَقُولُ آمَنَّا بِاللَّهِ فَإِذَا أُوذِيَ فِي اللَّهِ جَعَلَ فِتْنَةَ النَّاسِ كَعَذَابِ اللَّهِ وَلَئِن جَاءَ نَصْرٌ مِّن رَّبِّكَ لَيَقُولُنَّ إِنَّا كُنَّا مَعَكُمْ ۚ أَوَلَيْسَ اللَّهُ بِأَعْلَمَ بِمَا فِي صُدُورِ الْعَالَمِينَ

“And of the people are some who say, "We believe in Allāh," but when one [of them] is harmed for [the cause of] Allāh, he considers the trial [i.e., harm] of the people as [if it were] the punishment of Allāh. But if victory comes from your Lord, they say, "Indeed, We were with you." Is not Allāh most knowing of what is within the breasts of the worlds [i.e., all creatures]?”

Surah al-Ankabut 29:10 Read 29:10 with tafsir

For the believers still in Makkah, hijrah was no longer a virtue. It was an obligation on every Muslim, down to the women and the children. The Prophet ﷺ himself had left very nearly last of all, and even then he left Ali behind for one unfinished duty: returning the trusts. There were no banks in that world; a precious thing was left with a trustworthy man, and the people of Makkah, the same people hunting him ﷺ, had kept their valuables in his house. The city's safety deposit box was the man it was trying to kill, and he would not leave a single trust unreturned.

The command itself came the way Allah's commands come: gradually. Eight or nine verses across different surahs, each firmer than the last. First the door held open with pure promise, in a surah whose verses straddle the hijrah itself: emigrate, and even if the road kills you, the best of providers Himself guarantees your provision and an entrance you will love.

Then the tone hardens. Some people say we believe, but at the first scrape of harm they treat the persecution of men as if it were the punishment of Allah, and the moment victory comes they say, we were with you all along. The passage ends with a warning that Allah will make plain who truly believed and who only said so.

Who was this aimed at? A small circle, perhaps five or ten souls: Muslims who hid their faith and stayed put. And understand their bind before you judge it. Wealth in that world could not travel; you carried what one camel carried and abandoned the rest. To emigrate was to choose poverty with your eyes open. They wanted Makkah and iman both, the cake and the eating of it, and the verses kept arriving, each one closing the gap they were hiding in.

Not one more night in Makkah

إِنَّ الَّذِينَ تَوَفَّاهُمُ الْمَلَائِكَةُ ظَالِمِي أَنفُسِهِمْ قَالُوا فِيمَ كُنتُمْ ۖ قَالُوا كُنَّا مُسْتَضْعَفِينَ فِي الْأَرْضِ ۚ قَالُوا أَلَمْ تَكُنْ أَرْضُ اللَّهِ وَاسِعَةً فَتُهَاجِرُوا فِيهَا ۚ فَأُولَٰئِكَ مَأْوَاهُمْ جَهَنَّمُ ۖ وَسَاءَتْ مَصِيرًا

“Indeed, those whom the angels take [in death] while wronging themselves - [the angels] will say, "In what [condition] were you?" They will say, "We were oppressed in the land." They [the angels] will say, "Was not the earth of Allāh spacious [enough] for you to emigrate therein?" For those, their refuge is Hell - and evil it is as a destination.”

Surah an-Nisa 4:97 Read 4:97 with tafsir

إِلَّا الْمُسْتَضْعَفِينَ مِنَ الرِّجَالِ وَالنِّسَاءِ وَالْوِلْدَانِ لَا يَسْتَطِيعُونَ حِيلَةً وَلَا يَهْتَدُونَ سَبِيلًا فَأُولَٰئِكَ عَسَى اللَّهُ أَن يَعْفُوَ عَنْهُمْ ۚ وَكَانَ اللَّهُ عَفُوًّا غَفُورًا

“Except for the oppressed among men, women and children who cannot devise a plan nor are they directed to a way - For those it is expected that Allāh will pardon them, and Allāh is ever Pardoning and Forgiving.”

Surah an-Nisa 4:98-99 Read 4:98 with tafsir

Ibn Abbas tells us what staying cost them. When Badr came, Quraysh dragged the hidden Muslims out to war on the wrong side. They hung back, they avoided the fighting as best they could, and still some of them fell to believing arrows. About them came down the hardest verse of all: the angels asking the dying, in what condition were you? We were oppressed, they plead. And the angels do not accept it: was not the earth of Allah spacious enough for you to emigrate?

Notice the quiet detail the story turns on. There was a secret correspondence running between Madinah and Makkah, and every fresh revelation was sent in to the believers there. The Qur'an was their lifeline, arriving verse by verse. When this verse reached Makkah, it found an old man who had accepted Islam only after the Prophet ﷺ had already gone: so elderly he could not walk, and blind besides.

He heard the verse and refused the loophole anyone would have granted him. I am not of those who have an excuse, he said. I will not spend another night in Makkah. He ordered his servants to carry him out on his bed, and he made it just past the edge of the city before death caught up with him. As he lay dying, he pressed his right hand into his left and said: O Allah, this is my pledge. What I could not travel to give Your Messenger ﷺ in person, take from me here. And on that road, on the very first night of his hijrah, he died.

When the news reached the companions, some of them said: so close, he almost made it. That is how seriously that generation took the command. And Allah Himself answered them, sending down the very next verse: except the truly helpless, the men, women and children who cannot devise a way out; for those, it is expected that Allah will pardon them. Ibn Abbas read the word asa, perhaps, the way the early scholars always read it: whenever Allah says perhaps, He will certainly do it. The old man did not almost make it. He made it all the way.

Does the hijrah still bind us?

If hijrah was once fard on every believer, what about a Muslim in Memphis, in Toronto, in London? The seerah itself answers. As the believers grew strong, from around the fifth year onward, the strictness began to ease, and when Makkah itself fell, the Prophet ﷺ closed the chapter with one sentence: there is no hijrah after the conquest. The Hijrah with a capital H, the migration carrying those promised rewards, belonged to its hour, and its hour had ended.

Later generations of scholars still debated whether a Muslim may freely live outside the lands of Islam. Most of the schools allowed it on conditions you can count on one hand: that you are secure in your religion, not forced into sin, able to live an Islamic life. Their proof is a hadith as explicit as it gets, from a companion known to us only as Fudayk. His own people had not accepted Islam, and everyone was telling him his faith obliged him to emigrate. The Prophet ﷺ told him: establish the prayer, leave the sins, and live with your people wherever you like. Ibn Hibban carried it.

The Malikis ruled hardest the other way, and their history explains their fatwa: Andalusia. When Muslim Spain fell, the promises of freedom lasted barely a generation. Within a century there was not a public Muslim left: Arabic outlawed, the hijab stripped away, secret police hunting houses for a hidden mushaf, families forced to eat pork or disappear. The Andalusian scholars wrote that pain into law: never again put yourselves under such power.

Here Dr. Yasir Qadhi gives his own position, with the majority, and asks for something rarer than a ruling: realism. Some two hundred million Muslims live in India, tens of millions in China, forty million and more across the West; half a billion believers are minorities where they stand. Each land's scholars must judge when their land has become what Makkah was, and America, he says plainly, with every freedom to pray, fast, and build, is nowhere near it. Then the line that flips the whole question: the people most anxious about hijrah are usually the most practicing, exactly the ones who should stay as ambassadors of this religion, while the ones who never think about it, busy with every sin, are the ones who actually need a purer place. So keep Fudayk's hadith in your pocket: pray, leave the sins, and represent him ﷺ where you stand.

A Friday arrival, and a song returned to its day

So on what date did he ﷺ arrive? Here Sheikh Yasir the academic gives you an honest shrug instead of a fairy tale. Nobody in that world kept a calendar; there was no Islamic calendar to keep. Umar would institute one some fifteen years later and number the years backward, because Arabs remembered years by their events: the Year of the Elephant, the year of drought. This year needed no title. It simply became Year One. As for the famous 12th of Rabi al-Awwal, stamped by habit onto his birth and his arrival alike, and even onto the first revelation, which is impossible, since the Qur'an came down in Ramadan: call it a small superstition of ours. What can be said is this: most likely the first week of Rabi al-Awwal, September of 622.

He had waited at Quba about a week. Quba was the outermost settlement of an oasis that was not one city at all: small clusters of homes, some five minutes apart, some an hour, stitched together by date orchards and open ground. He waited for Ali, every trust in Makkah returned. And he waited for the families Abu Bakr had arranged to be brought north with a guide, his daughters Aisha and Asma among them.

Then, on a Friday, Madinah heard he was coming. More than five hundred of the Ansar dressed in full armor, the parade dress of that age, the way you honor a king, and marched out to Quba to walk their Prophet ﷺ home.

And the song? Generations have grown up picturing the little girls singing Tala'a al-Badru Alayna as he entered. Sheikh Yasir, academic before romantic, has to move the scene: the song welcomes a traveler from Thaniyyat al-Wada, the pass on the northern road toward Sham, and a rider from Makkah enters Madinah from the south, the opposite end of the oasis. If the moment happened at all, and its chain carries some doubt, it belongs to his ﷺ return from Tabuk, years from now. Let it go gently, because what is authentic here needs no decoration: an entire oasis in armor and tears, walking at a camel's pace beside the man they had waited their whole history for.

Let the camel be

Now every clan in Madinah wanted him. As the camel passed each fortress, hands reached for her halter: stay with us, Messenger of Allah, ours is the strength, ours the orchards. And to every offer he ﷺ gave the same answer: let her be, for she is under command. Allah had taken charge of the routing, and no tribe in the oasis could claim the choice or resent it. She knelt at last on a small open lot where the neighbors spread their dates to dry: a few palms, mostly bare ground, the property of two orphan boys, named in one narration as Sahl and Suhayl. Hold that empty lot in view. Everything is about to happen on it.

Where the camel knelt, he ﷺ asked a single question: whose house, of our kin, is nearest? Because Madinah held family. His own great-grandmother, Salma, was a daughter of Banu Najjar, this very neighborhood. A man named Khalid ibn Zayd, known forever as Abu Ayyub al-Ansari radiyallahu anhu, stepped forward: mine. Count the lineage out and he lands somewhere near a sixth cousin, six generations up before the bloodlines meet, and the Arabs carried such genealogies in their heads the way we carry phone numbers. A thread of kinship six generations thin, and the Prophet ﷺ honored it. Of all the houses of Madinah, he lodged with family.

Abu Ayyub's house, by Allah's quiet arrangement, was one of the few in the oasis built with an upper floor, and for roughly half a year, while the masjid rose, the Prophet ﷺ lived there. From those six months only two or three scenes survive, and every one of them is a portrait of what loving him ﷺ looks like up close.

One night Abu Ayyub turned over in his sleep and knocked the water jar across the upper floor. He woke his wife in a panic, and the two of them spent the rest of the night soaking the spill out of the floorboards with their own blanket, dreading that a single drop might seep through and fall on the Prophet ﷺ sleeping below. Another evening the thought struck him cold: we are walking above the head of the Messenger of Allah ﷺ. He and his wife pressed themselves against the edges of the room all night, and in the morning they went down and begged him to swap floors. He preferred the ground floor, easier for his guests, easier for everyone. They answered: we can never stand on a roof above your head. It is the only disobedience ever made entirely of respect, and it won. He ﷺ moved upstairs.

And the food. Abu Ayyub would cook and send the whole dish up, keeping nothing back, then eat from wherever the Prophet's ﷺ fingers had eaten. One day the dish came back untouched, and he ran upstairs: what have I done? Nothing was haram, the Prophet ﷺ reassured him; the dish had raw garlic in it, and, he said, I speak with those you do not speak with. The angels kept him company. Garlic is halal, he made clear, but the one who has just eaten it raw should spare the masjid his breath, for the masjid is the place of the angels. Six months of hosting, and what history kept is a soaked blanket, two cramped sleepers, and a studied dinner plate: love, recorded in its smallest units.

Allah's house before his own

Back to the drying yard. The two orphans, already Muslims, understood what was coming and cried out: a gift, ya Rasulallah, a gift to Allah from us! He ﷺ refused: I will only take it at its price. He negotiated like any buyer and paid them in full, because an orphan's wealth stays fenced even when the buyer is the Prophet ﷺ and the project is the house of Allah. The few palms on the lot came down, and nothing was wasted: their trunks became two of the masjid's walls, clay brick the other two. One or two pagan graves, generations old, were moved respectfully beyond the grounds.

Then he ﷺ took his place in the labor line, passing bricks hand to hand, and when a companion tried to take his load and sit him down, he refused. They sang as they built, the way workmen everywhere keep rhythm, and Bukhari preserved the words, the Prophet ﷺ singing with them: O Allah, there is no good but the good of the akhirah, so have mercy on the Ansar and the Muhajirah. Two weeks of that, and the masjid stood.

For its day it was vast, around a hundred feet by a hundred and thirty by the modern estimates, closer to a square than today's long rectangle. Three public doors opened into it, and years later, when it was suggested that men and women should enter separately, the eastern door was set aside as Bab an-Nisa, the women's door; a pillar in the haram still wears the name. And because a wall was a luxury two households shared, the homes built against the masjid opened straight into it through private doors. Remember those doors: on his deathbed the Prophet ﷺ would order every one of them sealed forever, except the door of Abu Bakr, and Madinah would understand exactly what he meant. The room of Aisha touched the masjid with nothing but a curtain between.

Do not picture marble. The roof, where there was roof at all, was palm thatch low enough, one early report says, for a raised hand to touch, and at first it shaded only the side facing Jerusalem, the first qiblah. When the qiblah turned toward Makkah, the old shade stayed where it was, and the poorest of the believers, the ones with no household at all, made it their address: the people of the Suffah, whom this series will meet properly very soon.

Even the finished roof kept out sun, not rain. Years later, one Ramadan night, the sky opened and the floor turned to mud, and a companion who was there describes the Prophet ﷺ rising from sajdah with the traces of mud on his forehead and his nose. He had pressed the noblest part of himself into the mud without a flicker of embarrassment, because sajdah is what a servant is for. And hold on to the largest fact of these weeks, the one the Sheikh calls mind-boggling: he ﷺ would not raise a roof of his own until the house of Allah was built. For half a year, the man the city would be renamed for had no house in it.

The stump that wept

Inside the new masjid, his first minbar was one of the felled palms: a stump, tall enough that he ﷺ once even prayed on top of it to show the rows exactly how he prayed, stepping down each time for sajdah and climbing back up. For a few years, every khutbah, every reminder, came from that piece of wood, and it stood close to him through all of it.

Then, as Muslim and Bukhari both record, he asked an Ansari woman whose servant was a carpenter to have a proper minbar made, and the carpenter built one of three steps. The first Friday the Prophet ﷺ climbed it instead, the congregation froze. A sound rose over the khutbah: a whimpering, a crying like a baby camel's, and it was coming from the abandoned stump.

He ﷺ stopped his khutbah, came down, and hugged it, and it settled like a child, sniffling into silence. If I had not embraced it, he said, it would have cried until the Day of Judgment. He had it buried beneath the new minbar, as close to him as wood could be. For one moment, Allah let the companions hear what creation feels in his ﷺ presence; that, the lecture reminds you, is the miracle.

One of the early scholars, after narrating this hadith, would turn on his listeners: here was a tree, crying because it longed to be near the Prophet ﷺ. You who have hearts, you who claim to love him: are you not more deserving of that longing than a piece of wood? Fourteen centuries later, the question still has your name on it.

A dua from this day

Allahumma la khayra illa khayrul akhirah, farhamil Ansara wal Muhajirah

O Allah, there is no good but the good of the hereafter, so have mercy on the Ansar and the Muhajirah (the emigrants): the chant the Prophet ﷺ sang with his companions as they raised the walls of his masjid.

What this day teaches

Day 30 hands you the fawaa'id the Sheikh draws on the ground in Madinah: where to live, what to build first, and how love actually behaves.

  • Allah weighs hearts, not headcounts.

    Three or four hundred muhajirun against thousands, and still the Qur'an names them first whenever it names the two. What you give up for Allah counts for more than how many stand beside you.

  • When the command lands, move that night.

    A blind old man who could not walk heard one verse and refused to sleep another night in Makkah. He died at the city's edge with his pledge in his own two hands, and Allah sent down his pardon. When Allah says perhaps, the early scholars taught, it is a promise.

  • Be an ambassador where you stand.

    The hijrah with a capital H ended at the conquest. The Prophet ﷺ told Fudayk: establish the prayer, leave the sins, and live with your people. If you worry for your deen in the land where you live, you are likely the very one who should stay and represent it.

  • Allah's house before your own.

    He ﷺ slept half a year in a borrowed room so the masjid would rise first, passed its bricks with his own hands, and paid two orphans full price for land they begged to give away. First things first, and justice even in charity.

  • Reverence is made of details.

    A blanket soaking up spilled water all night. Feet pulled back from the space above his head. A dinner plate studied for the marks of his fingers. Abu Ayyub teaches that love for him ﷺ lives in the smallest units of behavior.

  • If wood can long for him, so can you.

    A dead stump wept when he ﷺ stepped away from it, and he came down mid khutbah to hold it. Salawat is how a heart does what the stump did: refuses distance from him.

Why this day stays with you

Hold the day's two buildings side by side. In Makkah, an old man's body lies just past the city's edge, his pledge given into his own two hands, his pardon already descending. In Madinah, palm trunks are rising out of a date-drying yard, with the most beloved of creation ﷺ in the labor line singing about the akhirah. One believer spent his last night reaching for the Prophet ﷺ; a whole city spent these weeks building around him. The Madani era begins exactly here, with hearts arranging themselves around one man the way the masjid's walls did, and a stump in the corner learning what everyone in the story already knows: distance from him ﷺ is the one unbearable thing.

So end the day the way the builders did. O Allah, there is no good but the good of the hereafter, so have mercy on the Ansar and the Muhajirin, and on us who came late. Send Your praise and Your peace upon the one who built Your house before his own ﷺ, gather us in his masjid in this life and around him at his pool in the next, and make our hearts like the wood he embraced: unable to bear the distance, and quieted only by closeness to him. Ameen.

Questions

Why was hijrah to Madinah obligatory, and is it still obligatory today?
In the Prophet's ﷺ time, emigrating from Makkah to Madinah was made obligatory on every Muslim, with verse after verse escalating the command. After the conquest of Makkah, the Prophet ﷺ declared there is no hijrah after the conquest, ending that specific obligation. Most schools of law permit Muslims to live in any land where they are secure in their religion, citing the hadith of Fudayk: establish the prayer, leave the sins, and live with your people wherever you like. Dr. Yasir Qadhi holds this view, and notes it is for each land's scholars to judge if conditions ever become like Makkah's were.
Did the Prophet ﷺ really arrive in Madinah on the 12th of Rabi al-Awwal?
No exact date is known. There was no calendar in use at the time; Umar instituted the Islamic calendar some fifteen years later and the years were numbered retroactively, with the year of the hijrah becoming Year One. The habit of dating everything to the 12th of Rabi al-Awwal is unreliable, and what can be said is that he ﷺ most likely entered Madinah in the first week of Rabi al-Awwal, corresponding to September 622 CE, on a Friday.
Was the song Tala'a al-Badru Alayna sung at the Prophet's ﷺ arrival in Madinah?
Almost certainly not at the arrival. The song welcomes a traveler from Thaniyyat al-Wada, the pass on the northern road toward Sham, while a traveler from Makkah enters Madinah from the south. If the incident is authentic at all, and its chain carries some doubt, it took place at the Prophet's ﷺ return from Tabuk years later. What is well established at the arrival is that more than five hundred of the Ansar marched out in armor to escort him in.
Why did the Prophet ﷺ stay with Abu Ayyub al-Ansari?
His camel, which he said was under Allah's command, knelt at an empty lot in the neighborhood of Banu Najjar, his own relatives through his great-grandmother Salma. He then asked whose house among his kin was nearest, and it was Abu Ayyub's, a distant cousin whose house also had an upper floor. He ﷺ lived there roughly half a year while the masjid and his rooms were built.
Was the Prophet ﷺ buried inside his masjid?
No, and the episode corrects this common misconception. He ﷺ was buried where he passed away: in the room of Aisha, his house, which was attached to the masjid but outside it, separated by a curtain. It stayed that way for roughly a century, until an Umayyad expansion rebuilt the masjid and brought the room within its walls, over the objections of senior scholars of Madinah, who held that graves and masjids should remain separate and that his simple houses should have been preserved.
What makes the Prophet's ﷺ masjid in Madinah special?
It is one of only three sacred masjids in Islam, with Makkah and Jerusalem; no other land is holy in itself. A prayer in it is worth a thousand prayers elsewhere, and that reward covers the whole masjid, not just the rawdah. The famous hadith of the rawdah says what is between my house and my minbar is a garden of the gardens of Paradise: house, not grave, since he ﷺ had no grave when he said it.

Retold faithfully from Dr. Yasir Qadhi's Seerah of Prophet Muhammad ﷺ, episode 30: the beginning of the Madani era (Memphis Islamic Center, 2012). Qur'an: Sahih International, verified via quran.ai. The narration is the Sheikh's, the phrasing is Buruja's.

Carry it today

Allah weighs hearts, not headcounts.

Three or four hundred muhajirun against thousands, and still the Qur'an names them first whenever it names the two. What you give up for Allah counts for more than how many stand beside you.

What stayed with you?

A private note, kept only on this device. Find it again on your journey page.

Watch the lecture

This retelling is drawn from Dr. Yasir Qadhi's Seerah series. Watch the original on YouTube:

Watch episode 30Full Seerah playlist on YouTube →

A day of his life ﷺ, retold, every day.

Subscribe, free