Day 14 of 365
Quarter 1, Week 2 · The Seerah You don't Know

The First Six Months in Madinah

What was built, in what order. The operational sequence of founding a community.

The Setting

The migration (hijra) from Makkah to Madinah, in 622 CE, marked a transformation of the Muslim community's circumstances that exceeds the usual scope of the word "transformation." The shift was not merely geographical — from one city to another. It was not merely demographic — from a small minority to a larger group. It was a change in the fundamental nature of what the Muslim community was.

In Makkah, the believers had been a persecuted minority. They had no territory. They had no political institutions. They had no army. They had no judicial system. The community held together through the personal authority of the Prophet ﷺ, through clan protections that were increasingly fragile, and through the inner conviction that sustained them in suffering they had no power to end.

In Madinah, the believers would build something none of them had previously possessed — a polity, with territory, institutions, treaties, and the responsibilities of governance. The community that arrived in Yathrib (as Madinah was previously called) was not the community that had left Makkah. The same people, the same Prophet ﷺ, the same religion — but now with the obligation to govern, to administer, to defend, to legislate.

The first six months in Madinah are among the most operationally intensive periods in the entire seerah. The Prophet ﷺ, in this short window, established the foundations of what would become the first Islamic society. The order in which he did things — what he prioritised, what he sequenced, what he built first and what came later — is itself a teaching. It is the teaching of how to build a community from scratch, given by the man who had been preparing, knowingly or not, for exactly this work for the previous decade and a half.

What He Built First — The Mosque

The very first project, before housing arrangements were settled, before treaties were negotiated, before any administrative structure was put in place, was the building of the mosque.

The Prophet ﷺ had entered Madinah riding his camel, al-Qaswa'. The Ansar of Madinah, eager to host him, were each pressing him to dismount at their own house. Each clan offered hospitality. The Prophet ﷺ, sensing the potential for resentment if he chose any one host over the others, told the people: "Let her go — she is commanded." He let the camel walk freely, indicating that he would build wherever it stopped.

The camel walked through the city. People followed. It walked past several houses where the Prophet ﷺ would have been welcome. It eventually knelt at a plot of land in the southern part of the city, owned by two orphan brothers — Sahl and Suhayl — from the Banu al-Najjar (the maternal clan of the Prophet's ﷺ great-grandfather). The plot had been used for drying dates and was somewhat irregular, with date palms growing in scattered formation, some old graves of polytheists, and uneven ground.

The Prophet ﷺ dismounted. He asked who owned the land. The orphan brothers were brought forward. They wanted to give the land freely as a gift to him. The Prophet ﷺ refused the gift and insisted on payment. He bought the land at a fair price, with the consent of the boys' guardian. The classical sources have read this insistence on payment, even when a gift was offered, as a foundational statement: the religion does not begin in property taken without proper compensation, even when the giver is willing.

The mosque was then built simply.

The walls were of mud brick, built course by course as the sun-dried bricks were prepared. The roof was of palm fronds, supported by trunks of date palms used as columns. The floor was of beaten earth — no tiles, no carpet, no stone. The total enclosed area was modest by the standards of any later mosque, perhaps thirty by thirty-five metres. There was a single open courtyard with shaded edges where the prayers would be performed and where the community would gather.

The Prophet ﷺ worked alongside the companions in the construction. He carried bricks. He mixed mortar. He shaped clay. The classical sources preserve a hadith of him, working in the dust, while reciting verses of poetry to encourage the workers:

Allahumma la khayra illa khayru al-akhira, fa-rham al-Ansar wa al-Muhajira.O Allah, there is no good but the good of the next world, so have mercy on the Ansar and the Muhajirun.

The companions worked alongside him, and the construction was completed within weeks.

The mosque had three functions, all of which were operative from the beginning:

1. A place of prayer — the central religious obligation. The five daily prayers were now performed in this space, in congregation, with the Prophet ﷺ as imam.

2. A place of assembly — for community decisions, public teaching, judgment of disputes, reception of delegations. The mosque was simultaneously the religious centre and the political/administrative centre.

3. A place of refuge — the Suffah, a covered area at the back of the mosque, became a residence for the Ahl al-Suffah — the homeless companions who had migrated without resources, who had no family in Madinah and no means to acquire housing. They lived in the mosque itself, ate from charity, and were taught by the Prophet ﷺ in the long stretches of time they spent there.

The simplicity of the original mosque has been a permanent reference point in Islamic architectural and ethical thought. The mosque was not built to impress. It was built to function. It contained no minaret, no dome, no decoration. The prayer was called from the elevated edge of the courtyard wall (and later, after the institution of the formal adhan, from a more elevated position). The orientation was first toward Jerusalem, and then later — about sixteen months after the migration — toward Makkah, when the qibla change came.

What He Built Second — The Brotherhood

Within weeks of the migration, the Prophet ﷺ established the institution of mu'akhah — the brotherhood pairing each Muhajir (Makkan emigrant) with an Ansari (Madinan helper).

The pairings were not random. The Prophet ﷺ matched personalities, professional backgrounds, and family situations carefully. He paired traders with traders, craftsmen with craftsmen where possible. He matched older companions with older Ansar, and the young with the young. The pairings preserved in the classical sources show evident attention to compatibility — the relationships were meant to be lasting, deep, and effective.

Each Ansari brother was committed, in the formal pairing, to share his home, his food, and his livelihood with his Makkan brother. The early commitment was extraordinary in its scope. In some cases, the commitment extended to inheritance — a Muhajir could inherit from his Ansari brother as if from a blood relative. (This provision was later abrogated when the Quran established that inheritance follows blood lines, but the bond of brotherhood remained as a non-inheriting relationship.)

The institution solved a specific problem. The Muhajirun had arrived with nothing — no homes, no occupations, no networks in the city, no place in the existing economic structure. Without rapid integration, they would have been a permanent dependent class, supported by Madinan charity but never quite belonging. This was a recipe for resentment in both directions and for the eventual disintegration of community cohesion.

The brotherhood paired each emigrant with an established local who provided the introduction to the economy and society. The Ansari became the bridge between the Muhajir and the city — introducing him to traders, sponsoring him in the marketplace, giving him family-like standing where he had none.

The most famous example, which we discussed in Volume One, is Abdul Rahman ibn Awf, paired with Sa'd ibn al-Rabi'. Sa'd offered half his wealth and the choice between his two wives (he would divorce whichever Abdul Rahman wished and Abdul Rahman could marry her after her iddah). Abdul Rahman declined the offer of wealth and women. He asked only: "Show me the market." Sa'd showed him the market. Abdul Rahman went, started small, and within years became one of the wealthiest Muslims who ever lived.

The principle the brotherhood established — that integration matters more than redistribution, that access matters more than charity — became one of the foundational economic principles of the early community. The Ansar had been willing to give wealth. The wisest of the Muhajirun asked for access instead. The wealth they would later build, on the foundation of the access they were given, was many multiples of what charity could have provided.

For modern Muslim entrepreneurs, particularly those in immigrant or minority communities, this is one of the most operationally important teachings in the entire seerah. The temptation, when receiving help, is to take whatever is offered. The wisdom is to ask for the kind of help that produces independence rather than dependence. The Ansari's market introduction was worth more than half his wealth, because it gave Abdul Rahman the capacity to generate wealth indefinitely.

What He Built Third — The Constitution

Within the first year, the Prophet ﷺ promulgated what is now known as the Constitution of Madinah (Sahifat al-Madinah) — preserved in the classical sources, particularly Ibn Ishaq's Sirah, in what scholars consider a substantially original form.

This document is one of the most remarkable political texts of late antiquity. It establishes Madinah as a single political community comprising:

- The Muhajirun (Makkan emigrants) - The Ansar (Madinan Helpers), divided into their constituent clans of Aws and Khazraj - The Jewish tribes of the city — Banu Qaynuqa, Banu Nadir, Banu Qurayza, and several smaller groups - The various pagan Arab tribes of the city and surrounding region

All of these were declared, in the constitution, members of a single ummah — community — with reciprocal obligations of mutual defence, conflict resolution, and external relations.

Several principles in the document are worth noting:

Religious freedom. "To the Jews their religion, and to the Muslims theirs." The Jewish tribes retained their religion, their internal law, their judicial autonomy on internal matters. They were not required to become Muslim, nor was their religion suppressed. Their participation in the ummah was civic and political, not religious.

Mutual defence. External attacks on Madinah were to be repelled jointly. The various groups were obligated to support each other militarily against outside aggressors. The constitution specifies that the Jewish tribes would fight alongside the Muslims against any common enemy, and the Muslims alongside the Jewish tribes.

Internal dispute resolution. The Prophet ﷺ was named as the ultimate arbiter of disputes between groups. Disputes within groups were to be handled by their own internal mechanisms — Jewish disputes by Jewish law, Muslim disputes by Islamic law. But where groups came into conflict with each other, the Prophet ﷺ was the supreme judicial authority.

Financial reciprocity. The cost of warfare and ransom was to be shared among the constituent groups according to specified formulas. Each group was responsible for the blood-money of its own members and for contributing to common defence in proportion to their numbers and resources.

Solidarity against the Quraysh. A specific provision was that no party to the constitution could conclude a separate peace with the Quraysh. The agreement bound all parties together in their relationship to Madinah's principal external adversary.

The constitution is, by most modern accounts, the world's first written political document of its kind — establishing pluralism, mutual obligation, and shared sovereignty in a single community across religious lines. The political theorist Ali Bulaç and others have argued that it represents an early pluralist constitutional model that anticipates many features of modern multicultural states.

This is also significant because it shows the Prophet ﷺ as a political founder, not just a religious one. He understood that a community required structure beyond shared belief. He moved rapidly to establish that structure, in formal written terms, with reciprocal obligations clearly specified.

What He Built Fourth — The Marketplace

We have discussed this in Volume One. The Prophet ﷺ identified a piece of open ground and declared it the marketplace of the Muslims — free of rent, free of tax, with no permanent stalls and no gatekeepers.

This was an economic intervention that solved several problems at once:

- It gave the Muhajirun a frictionless point of entry into commerce. They did not need to negotiate with established Madinan stallholders, did not need to pay rents they could not afford, did not need to break into cartels.

- It established the Muslim community as having its own economic infrastructure, independent of the existing Madinah markets controlled by other groups. Several of the established markets in Madinah were controlled by the Jewish tribes, and while relations were initially cooperative, having an independent Muslim marketplace was strategically important.

- It set a precedent of low-friction marketplace governance that would be foundational to Islamic commercial law. The principle of the market is a public good, not a privately rentable asset, became part of the early Muslim economic imagination.

The combination of mu'akhah (brotherhood for integration) and the new marketplace (frictionless economic entry) meant that the Muhajirun were in commerce within weeks of arrival. Many of them became substantial traders within months. The Madinan economy, far from being burdened by the new arrivals, expanded to accommodate their commercial activity.

What He Built Fifth — The Treaties

The Prophet ﷺ also moved quickly to establish treaty relations with the Bedouin tribes of the surrounding region. Some accepted Islam and joined the ummah directly. Others entered into non-aggression pacts. The pattern was to extend Madinah's security perimeter outward through formal agreements.

This had several effects:

- It reduced the immediate threat from raiding Bedouin tribes who had previously preyed on Madinan caravans and farms.

- It established Madinah as a regional player rather than a single-city community, with formal external relations and recognised treaty partners.

- It created channels for trade, intelligence, and gradual da'wah (invitation to the religion) into the surrounding region.

- It put pressure on the Quraysh, whose own caravan routes increasingly passed through territory under Madinan treaty influence.

The treaties were honoured carefully by the Muslim side. The Prophet ﷺ insisted on this even when it cost the community advantage. The classical sources record several incidents in which a Muslim raid was called off because it would have violated a treaty, or in which captured property was returned because it had been taken from a treaty partner.

The reputation for keeping treaties became, over the next decade, one of the things that made the broader regional dynamics shift in the Muslims' favour. Tribes that had been fence-sitters — neither hostile nor allied — increasingly inclined toward Madinah, in part because Madinah's word could be trusted in a region where double-dealing was common.

What He Built Sixth — The Daily Practices

Alongside the institutional structures, the Prophet ﷺ used the first six months and the months immediately following to establish the daily religious practices of the community in their full form.

The five daily prayers were now performed openly, in congregation, in the mosque. The call to prayer (adhan) was instituted in this period — adopted on the suggestion of Abdullah ibn Zayd (رضي الله عنه), who had seen its form in a dream that the Prophet ﷺ confirmed as divinely guided. Bilal ibn Rabah, as we discussed on Day 20, was chosen as the first muezzin.

The fast of Ramadan was instituted in the second year after the migration. Before this, the community had fasted on Ashura (the tenth day of Muharram, in continuity with Jewish practice, which the Prophet ﷺ found the Madinan Jews observing in commemoration of Musa's deliverance from Pharaoh) and other voluntary occasions. The institution of Ramadan as the obligatory month of fasting transformed the community's annual rhythm. Each year now had a month of intensive collective spiritual discipline.

Zakat as a formal obligation, with specific rates and beneficiaries, was systematised in this period. The verses establishing the categories of zakat recipients (Quran 9:60) and the rates of obligation came into full operation. Officials were appointed to collect and distribute zakat, and it became, among other things, the first systematic welfare system in human history — predating by centuries any comparable institutional structure in the major civilisations.

The qiblah change to the Ka'bah occurred about sixteen months after the migration — early in the second year. We have discussed this on Day 4, in the context of asbab al-nuzul. The change was deeply meaningful, both theologically and politically — establishing the Muslim community's distinctive identity, oriented toward the sanctuary they would eventually return to as victors.

These practices, established in this concentrated period, gave the community a daily, weekly, monthly, and annual rhythm that distinguished them from the surrounding tribes and gave them a coherent religious life with markers in every timeframe.

The Order of Operations

What is striking, looking at this sequence, is the order in which things were done.

Mosque first. The place of prayer, assembly, and refuge was prioritised over housing, governance, or military preparation. The community needed a centre before it needed anything else.

Brotherhood second. Integration was prioritised over administration. The Muhajirun needed to be brought into the existing economic and social fabric of Madinah before formal political structures could be built on top.

Constitution third. Political structure followed social integration. The constitution was possible because the community was already, at the social level, becoming integrated. Political structure built on social structure, not the other way around.

Marketplace fourth. Economic infrastructure followed political. The marketplace operated within the framework the constitution established.

Treaties fifth. External relations followed internal coherence. The Prophet ﷺ extended Madinah's security perimeter outward only after the internal community was established.

Practices sixth. The daily, weekly, annual rhythm of the community was layered on top of the institutional framework.

For modern Muslim entrepreneurs, particularly those building organisations from scratch, this sequence is instructive. The temptation, when starting something new, is to focus first on external structures — legal entities, governance documents, formal agreements with partners. The Prophet's ﷺ sequence suggests something different.

First the place where people gather. Whether this is a physical office, a recurring weekly meeting, a digital channel where the team interacts daily — the centre must come first. Without a place where people meet, no community of work can form.

Then the relationships among them. Pair people. Match capabilities. Build the human bonds that will make the rest of the structure stable. This is not optional; it is foundational.

Then the rules. Once relationships exist, formal governance can sit on top. Rules without relationships are unenforceable. Relationships without rules are unscalable. The order is rules following relationships.

Then the economic mechanisms. With governance in place, the economic structures of the venture can operate within a framework that everyone recognises.

Then the external relations. Once internal cohesion is real, the venture can extend its perimeter outward through partnerships, alliances, customer relationships.

Then the daily practices. The rhythms of the team — daily standups, weekly reviews, quarterly retrospectives, annual planning — are the final layer that makes the operation continuous and improvable.

The order matters because each layer presupposes the previous one. Rules before relationships are unenforceable. Economic mechanisms before rules are unstable. External relations before economic mechanisms are unsustainable. The order is not arbitrary; it reflects how communities actually grow.

A Closing Reflection

The first six months in Madinah are an operational masterclass. In half a year, the Prophet ﷺ established:

- A central institution (the mosque) - A social integration mechanism (the brotherhood) - A political constitution (the Sahifah) - An economic infrastructure (the marketplace) - An external security framework (the treaties) - A daily religious life (the practices)

Each of these would prove durable. Fourteen centuries later, the structures the Prophet ﷺ established in the first six months of Madinah are still recognisable in Muslim communities worldwide. The mosque-as-centre. The brotherhood-as-integration. The constitution-as-pluralism. The market-as-public-good. The treaty-keeping as reputation. The five prayers, zakat, Ramadan, the adhan — all of these structure Muslim life today.

What enabled this rapid construction was, in part, that the Prophet ﷺ had been preparing for it without knowing it. The years in Makkah, the relationships, the trust accumulated, the lessons learned about leadership under pressure — all of this was preparation for the moment when he had the political space to build. When the migration came, he was ready.

For those of us building things, this is the deeper teaching. The window of intense construction is rarely long. When it comes, the question is whether the previous years have prepared you. The Prophet's ﷺ first six months in Madinah were the harvest of his thirteen years in Makkah. They could be done in six months because the foundation had been laid for thirteen years.

What you build today, when no one is watching, is what makes possible what you might build tomorrow, when the conditions allow.

This is the deepest principle of the hijra phase. It is also, I think, the answer to one of the most common questions Muslim entrepreneurs ask themselves: am I getting anywhere? Are the years of work amounting to anything? The Prophet ﷺ in Makkah, year by year, was not visibly building Madinah. He was building himself, his relationships, the small community around him, the patterns of leadership that would later carry the weight. None of it looked like the construction of a society. All of it was the foundation for that construction.

The hijra came when it came. The harvest came when it came. The work in front of you, today, in conditions that may seem to be producing nothing visible, is exactly the kind of work that, when conditions change, will allow you to build in months what others would need years to attempt.

Wallahu a'lam.

Day 14 of 365. End of Week 2.