The Early Community in Madinah
How the migrants and the people of Madinah built a new community founded on brotherhood, shared worship and mutual responsibility.
- 4 min read
- Intermediate
- Published
On this page
A town looking for peace
Before it was called Madinah, the oasis town north of Makkah was known as Yathrib. It was a farming settlement of date palms and wells, home to two large Arab tribes, the Aws and the Khazraj, as well as several Jewish tribes. For years the Aws and the Khazraj had been caught in a bitter cycle of feuding.
During the pilgrimage season, some people from Yathrib met the Prophet Muhammad (peace be upon him) in Makkah and accepted his message. Over the following two years, larger groups came and pledged to support him. They saw in him not only a messenger of God but also someone who might bring their divided town together.
When persecution in Makkah became unbearable, the Prophet allowed his followers to migrate to Yathrib, and in 622 CE he made the journey himself. This migration, the hijrah, is so important that the Islamic calendar counts its years from it.
إِنَّمَا ٱلْمُؤْمِنُونَ إِخْوَةٌۭ فَأَصْلِحُوا۟ بَيْنَ أَخَوَيْكُمْ ۚ وَٱتَّقُوا۟ ٱللَّهَ لَعَلَّكُمْ تُرْحَمُونَ
“The believers are naught else than brothers. Therefore make peace between your brethren and observe your duty to Allah that haply ye may obtain mercy.”
The Muhajirun and the Ansar
Two groups of believers now lived side by side. The Muhajirun, meaning 'the migrants', were the Muslims who had left Makkah. Many had abandoned homes, businesses and family ties, and arrived with very little.
The Ansar, meaning 'the helpers', were the Muslims of Madinah who welcomed them. They opened their homes, shared their food and offered work in their orchards. The Quran praises them for loving those who came to them and for putting others before themselves even when they were in need (Quran 59:9).
These two names are still used with great respect today. Together, the Muhajirun and the Ansar are remembered among the Prophet's closest companions, and their generosity towards one another is held up as a model of what faith can do.
Brotherhood beyond tribe
In Arabian society, a person's safety and status depended largely on their tribe. The Prophet introduced a new kind of bond. He paired individual migrants with individual helpers, asking each pair to treat one another as brothers. This arrangement is known in Arabic as al-mu'akhah, 'the making of brotherhood'.
These pairings were practical as well as spiritual. A migrant might share in his partner's livelihood until he could stand on his own feet. Some migrants, though, preferred to rebuild their lives through trade in the town's market, and they did so with the encouragement of their hosts.
The deeper lesson was that faith could unite people whom tribe, wealth or history had kept apart. The Quran describes the believers as brothers to one another and calls on them to make peace between each other (Quran 49:10).
The mosque at the heart of the town
One of the Prophet's first acts in Madinah was to build a mosque. It was very simple: walls of mud brick, a roof of palm branches resting on palm-trunk pillars, and an open courtyard. The Prophet himself carried bricks alongside his companions.
This mosque was far more than a place for the five daily prayers. It was where people learned the Quran, asked questions, settled disputes, received visitors and discussed the affairs of the community. A sheltered area at one side gave a home to poor believers who had nowhere else to stay, and others in the community helped to feed them.
The Prophet's family lived in modest rooms beside the mosque, and he spent much of his day among the people. Leadership and worship were not distant from ordinary life; they happened in the same open space.
The Charter of Madinah
Madinah was a mixed society of Muslims, Jewish tribes and Arabs who had not yet embraced Islam. To bring order to this community, the Prophet agreed a written document, often called the Charter or Constitution of Madinah.
Historians discuss its exact wording and date, but its broad outline is widely accepted. It treated the people of Madinah as one community for mutual defence, recognised that the Jewish tribes kept their own religion, set out how blood money and ransoms would be handled, and named the Prophet as the final reference for serious disputes.
Its significance lies in the idea that people of different faiths and clans could live under shared, written commitments rather than the shifting loyalties of tribal feuds.
- Shared responsibility for the defence of the town
- Freedom for each religious group to follow its own faith
- Agreed rules for justice and compensation
- A clear way to resolve disputes
Lessons for today
The early community in Madinah was not perfect, and it faced real dangers, including conflict with Makkah and tensions within the town itself. Yet Muslims look back on it as a living example of the Prophet's teachings put into practice.
Its spirit can be summed up in a few habits that any community can practise: welcoming newcomers, sharing what you have, keeping places of worship open and useful, and settling differences by agreement rather than force.
Many Muslims today, especially those who have moved to a new country or who have recently embraced Islam, find the story of the Muhajirun and the Ansar especially meaningful. It reminds them that being a stranger is not a weakness, and that helping a stranger feel at home is one of the most valued deeds in the community's memory.
It is also a reminder that strong communities are built gradually. The early believers in Madinah learned together, made mistakes together and supported one another through hard years. Their story invites every generation to ask how it, too, can turn faith into trust, generosity and belonging.
Key takeaways
- Yathrib, later called Madinah, welcomed the Prophet in 622 CE after years of persecution in Makkah.
- The Muhajirun (migrants) and the Ansar (helpers) were joined in bonds of brotherhood that went beyond tribe.
- The Prophet's mosque was a centre for worship, learning, care for the poor and community life.
- The Charter of Madinah set out shared duties and religious freedom for the town's different groups.
Keep going
Continue learning
- Prophet & History
The Life of the Prophet Muhammad: An Overview
From his birth in Makkah to the first revelation, the migration to Madinah and his final years, the key moments of the Prophet's life.
4 min readBeginner - Beliefs
The Six Articles of Faith
Belief in God, His angels, His books, His messengers, the Last Day and divine decree: the six pillars of Muslim faith, one by one.
4 min readBeginner - Beliefs
Tawhid: The Oneness of God
Why the oneness of God sits at the centre of Islam, and what it means for how a believer sees the world and lives in it.
4 min readBeginner