Skip to main content

This content is for educational purposes only. If you spot an error, have a question, or want to suggest an improvement, contact us.

Arriving in Madinah — The First Mosque and the First Adhan

622 CEQuba and Madinah

The people of Madinah waited at the edge of town every morning until the heat drove them home. When the Prophet (SAW) finally rode in, he let his camel choose where he would live, carried bricks to build his mosque with his own hands, and gave Islam its call to prayer. This is how a persecuted community became a town with a centre.

Share

The Story of Muhammad (SAW) · Chapter 16

The life that changed the world, written for non-Muslims, beginners, and the curious.

Adapted from Dr. Yasir Qadhi's seerah lecture series. This chapter draws on episodes 29, 30 and 31.

Chapter 15 ended with the Prophet (SAW) and Abu Bakr (RA) riding north, with a price on their heads. This chapter is about what they rode into.

For thirteen years in Makkah the Muslims had been a hunted minority. In Madinah they became a community with a mosque, a call to prayer and a leader everyone could see.

Who lived in Yathrib

The town was still called Yathrib when he arrived. Two very different groups lived there.

The first were three Jewish tribes: Banu Qaynuqa, Banu Qurayza and Banu Nadir. They owned much of the farmland, the money and the stone forts.

Nobody knows for certain how they got to the middle of Arabia. Qadhi goes through several theories, mostly tied to the times Jews were driven out of Jerusalem. His own view is that the three tribes were three separate waves of migration, which would explain why they sometimes fought each other.

The second group were two Arab tribes, the Aws and the Khazraj. They were cousins who had come up from Yemen generations earlier.

The Aws and the Khazraj had spent more than a century fighting each other. The worst of it, the Battle of Bu'ath, happened only about five years before the Prophet (SAW) arrived. Each side had Jewish allies.

Qadhi estimates the whole town at around 20,000 people. Roughly 6,000 of them were Jewish and the rest were Arab.

So the Prophet (SAW) was walking into a town that was tired of its own wars. Many of its people hoped he could bring them together.

Waiting at the edge of town

News reached Madinah that he had left Makkah. From then on, the Muslims there walked out every morning to the edge of town and watched the road.

They waited until the midday heat forced them home. Then they came back the next morning and did it again.

One day they had just gone inside when a Jewish man, up on one of the forts, saw riders in white coming out of the desert haze. He couldn't help himself and shouted to the whole town.

Hadith

“O you Arabs! Here is your great man whom you have been waiting for!”

— Sahih al-Bukhari 3743

People grabbed their weapons and ran out to meet him. It was a Monday in the month of Rabi' al-Awwal (the third month of the Islamic calendar).

There is a small detail in the same report. Many of the people of Madinah had never seen the Prophet (SAW). When the crowd arrived, some of them greeted Abu Bakr, thinking he was the Prophet.

Then the sun moved onto the Prophet (SAW), and Abu Bakr stood up and shaded him with his cloak. That is how the crowd worked out which of the two men they had been waiting for.

People often say he arrived on the 12th of the month. Qadhi doubts it. The ride from Makkah takes several days, and an early source has him leaving on the 1st, so he thinks the 8th or 9th is more likely. The honest answer is that nobody recorded the exact date.

The first mosque, at Quba

He did not go straight into the centre of town. He stopped first at Quba, a village on the Makkah side of Madinah.

He stayed there with the clan of Banu Amr ibn Awf. Anas ibn Malik (RA) remembered the stay as fourteen nights (Sahih al-Bukhari 422).

While he was there he started building a mosque. It was the first one he founded.

The Quran mentions a mosque built on the right foundations from its very first day.

Quran

“A mosque founded on righteousness from the first day is more worthy for you to stand in. Within it are men who love to purify themselves; and Allah loves those who purify themselves.”

— Surah At-Tawbah 9:108

Most scholars say this means the mosque at Quba. Another report has the Prophet (SAW) pointing to his own mosque in Madinah instead. Qadhi's answer is that the ayah fits both, since both were built on that foundation from the first day.

On his way from Quba into the town, a Friday came round. Qadhi says he stopped and led his first Friday prayer in the lands of one of the clans along the way, before either mosque was finished.

The camel chooses

Everyone in Madinah wanted the Prophet (SAW) to live with their family. He gave them a way to settle it without offending anyone.

He let his camel walk, and said he would stay wherever it knelt.

It knelt on a piece of open ground used for drying dates. The land belonged to two orphan boys, Sahl and Suhayl, who were in the care of As'ad ibn Zurara (RA).

Hadith

“This place, Allah willing, will be our abiding place.”

— Sahih al-Bukhari 3743

The two boys offered the land as a gift. According to the seerah books Qadhi follows, he insisted on paying them a fair price for it.

The house of Abu Ayyub

He needed somewhere to live while the mosque was built. The nearest house belonged to Abu Ayyub al-Ansari (RA), from the clan of Banu an-Najjar. That clan were distant relatives of the Prophet (SAW) through his great-grandmother, so the choice had a family logic to it.

Abu Ayyub had a two-storey house. The Prophet (SAW) took the ground floor, and Abu Ayyub and his wife lived upstairs.

One night Abu Ayyub woke up with a terrible thought. He and his wife were walking around above the Prophet's head.

They spent the rest of the night huddled in one corner of the room. In the morning he asked the Prophet (SAW) to swap floors. The Prophet said the ground floor was easier for him, since visitors kept coming. Abu Ayyub would not accept it.

Hadith

“I will not be on a roof under which you are.”

— Sahih Muslim 5221

So the Prophet (SAW) moved upstairs.

Abu Ayyub cooked for him every day. When the dish came back down, he would ask where the Prophet's fingers had been and eat from that spot.

One day the dish came back untouched. Abu Ayyub panicked and ran upstairs to ask if the food was forbidden.

It was not. It had garlic in it. The Prophet (SAW) said he simply did not like it, and the narration explains why: he was visited by the angel bringing revelation. Abu Ayyub replied that from now on, he didn't like what the Prophet didn't like.

Qadhi says the Prophet (SAW) stayed in Abu Ayyub's house for about six months, until his own rooms next to the mosque were ready.

Building the Prophet's Mosque

The date-drying ground was not ready to build on. Anas (RA) describes what was there: some old graves of idol-worshippers, uneven ground and a few date palms (Sahih al-Bukhari 422).

The graves were moved, the ground was levelled and the palms were cut down. The palm trunks were lined up to make the wall facing the direction of prayer.

Then everyone built it together, and the Prophet (SAW) worked with them. He carried mud bricks like everyone else, and he chanted a line of verse while he did it.

Hadith

“O Allah! The actual reward is the reward in the Hereafter, so bestow Your mercy on the Ansar and the Emigrants.”

— Sahih al-Bukhari 3743

The Ansar ("the Helpers") were the Muslims of Madinah. The Muhajirun ("the Emigrants") were the Muslims who had left Makkah. That line, sung while passing bricks, put the two groups side by side.

The Quran names them side by side too.

Quran

“And the first forerunners [in the faith] among the Muhajireen and the Ansar and those who followed them with good conduct - Allah is pleased with them and they are pleased with Him.”

— Surah At-Tawbah 9:100

The finished mosque was simple. It had a wall of palm trunks on the side facing the direction of prayer, walls of mud brick, and a low roof that kept off the sun but not the rain.

Ammar and the two bricks

One of the builders was Ammar ibn Yasir (RA). His mother, Sumayyah (RA), was the first person killed for being Muslim, as you saw in Chapter 8.

Everyone else was carrying one brick at a time. Ammar was carrying two.

The Prophet (SAW) saw him covered in dust and started brushing it off him. Then he said something that nobody there could have understood yet.

Hadith

“May Allah have mercy on Ammar. The rebellious group will kill him. He will be inviting them to Paradise, and they will be inviting him to the Fire.”

— Sahih al-Bukhari 440

Ammar lived for decades after this. Qadhi notes that he was killed in 37 AH (657 CE), in the civil war between the companions after the Prophet's death, fighting on the side of Ali (RA). Qadhi explains that Sunni scholars use this hadith to say Ali's side was closer to the truth, while still respecting the companions on both sides.

The palm trunk that cried

For a while there was no pulpit in the mosque. On Fridays the Prophet (SAW) stood beside a palm trunk to give his sermon.

Then someone from the Ansar offered to make him a proper pulpit, and he agreed. Jabir ibn Abdullah (RA) describes the first Friday he used it.

Hadith

“The date-palm cried like a child! The Prophet descended from the pulpit and embraced it while it continued moaning like a child being quietened. The Prophet said, 'It was crying for missing what it used to hear of religious knowledge given near to it.'”

— Sahih al-Bukhari 3434

Qadhi quotes a comment on this story from the early scholar al-Hasan al-Basri. A piece of wood cried because it missed being near the Prophet (SAW). People, he said, have more reason than a tree to feel that way.

Prayers get longer

In Makkah, every one of the five daily prayers was just two units, called rak'ahs (one round of standing, bowing and prostrating).

Aisha (RA) says that changed in Madinah.

Hadith

“Originally, two rak'at were prescribed in every prayer. When the Prophet migrated to Medina four rak'at were enjoined, while the journey prayer remained unchanged.”

— Sahih al-Bukhari 3772

That is why Muslims today shorten some prayers to two rak'ahs when they travel. The travel prayer kept the original Makkan length.

How the adhan began

Now there was a mosque, but no way to tell people it was time to pray. Everyone just guessed and turned up.

They talked it over. Ibn Umar (RA) remembered the suggestions (Sahih al-Bukhari 590). Some wanted a bell like the Christians used. Others wanted a horn like the one the Jews used. Nothing was decided.

That night, a companion named Abdullah ibn Zayd (RA) had a dream. A man in it taught him a set of words to call people to prayer, the words of the adhan (the call to prayer) that you still hear from mosques today.

He went to the Prophet (SAW) in the morning and told him.

Hadith

“Indeed this dream is true. So go to Bilal, for he has a better and louder voice than you. Convey to him what was said to you, so that he may call with that.”

— Jami' at-Tirmidhi 189

At-Tirmidhi graded this hadith hasan sahih (sound and authentic).

So Abdullah ibn Zayd said each phrase, and Bilal (RA) called it out over the town. Bilal had once been tortured in Makkah for saying "One, One". Now he was the voice of the whole community.

When Umar ibn al-Khattab (RA) heard it, he came rushing out still pulling his lower garment straight. He told the Prophet (SAW) he had seen the same words in a dream.

Qadhi points out that this is the only part of Islamic law that started from a companion's dream. Even then, the dream was not the source. What made it law was the Prophet (SAW) saying it was true.

A song that came later

You may know a famous song, Tala'a al-Badru 'Alayna ("The full moon has risen over us"). It is often said that the girls of Madinah sang it as the Prophet (SAW) arrived.

Qadhi doubts the story. The song mentions a place called Thaniyyat al-Wada', and that pass is on the north side of Madinah. The road from Makkah comes in from the south. If the song was sung for him, he argues, it was more likely years later, when he came back from a campaign to the north.

A mosque before a house

He arrived with nowhere to live. In his first weeks he started two mosques, and he moved into rooms of his own only after the mosque was done.

The mosque in Madinah became much more than a place to pray. Qadhi lists what happened there: teaching, meetings, weddings, sending out expeditions, and a sheltered corner where Muslims with no home could sleep.


Up next: Brothers and a Charter. The Prophet (SAW) pairs each emigrant from Makkah with a family in Madinah, and then writes an agreement for everyone in the town, Muslims, Jews and pagans alike.