Masjid Quba: First Mosque in Islam, History & Legacy

Home Masjid Quba: First Mosque in Islam, History & Legacy

Masjid Quba holds a unique place in Islamic history. Located in Madinah, it was established by Prophet Muhammad ﷺ during the Hijrah from Makkah to Madinah and became one of the earliest foundations of the new Muslim community. Sahih al Bukhari records that the Prophet ﷺ stayed among Banu Amr ibn Awf and established the mosque at Quba before continuing towards central Madinah.

Its importance reaches far beyond its age. Masjid Quba represents faith translated into action. At a moment of migration, uncertainty and major change, one of the Prophet’s ﷺ first priorities was to establish a place where Muslims could worship Allah, gather together and strengthen their community.

That example still carries an important message today. A mosque is not simply a building. At its best, it becomes a centre of prayer, learning, belonging, service and unity for generations.

What Is Masjid Quba?

Masjid Quba is the historic mosque established by Prophet Muhammad ﷺ at Quba during his migration from Makkah to Madinah. It is commonly known as the first mosque established by the Muslim community during the Hijrah. The Prophet ﷺ continued to visit it, and authentic narrations describe a special reward for praying there after performing purification at home.

The History of Masjid Quba and the Hijrah

The Hijrah was one of the great turning points in Islamic history. Muslims had endured years of persecution in Makkah, and migration to Madinah opened a new chapter in which the Muslim community could worship, organise and live together more openly.

Before entering the centre of Madinah, Prophet Muhammad ﷺ stayed in the area of Quba. Sahih al Bukhari records that he remained with Banu Amr ibn Awf for ten nights and established the mosque there.

This sequence carries an important lesson. The Prophet ﷺ had just completed an exhausting and dangerous migration, yet establishing a place connected to worship was given immediate importance.

The mosque became part of the foundation of the new Muslim society.

Faith was not treated as something separate from everyday community life. Worship, brotherhood, learning and collective responsibility were connected to one another from the beginning.

Masjid Quba therefore reminds Muslims that strong communities need more than houses, roads and marketplaces. They also need places where hearts reconnect with Allah and where people can come together around shared values.

Masjid Quba in the Qur’an

Masjid Quba is closely associated by classical Islamic scholarship with the Qur’anic description of a mosque founded upon taqwa.

In Surah At Tawbah, verse 108, Allah describes a mosque established upon righteousness from its first day as more deserving of prayer and praises people who love purification. Classical tafsir sources connect this passage with the mosque at Quba, although an authentic narration also records discussion regarding the application of the verse to the Prophet’s Mosque in Madinah.

The central principle is clear. The true value of a mosque is connected to its foundation upon taqwa, sincerity and worship of Allah.

This gives Masjid Quba a lesson that remains relevant wherever a mosque is built.

Beautiful architecture may serve worshippers, but the spiritual foundation matters more. A masjid should be established for Allah, maintained with sincere intentions and used to strengthen worship and righteousness.

The Reward of Praying at Masjid Quba

Masjid Quba has a special virtue in the Sunnah.

Sunan Ibn Majah narrates that Prophet Muhammad ﷺ taught that a person who purifies themselves at home, comes to Masjid Quba and offers prayer there receives a reward like that of Umrah.

This narration has made visiting Masjid Quba meaningful for Muslims who travel to Madinah.

The Prophet ﷺ did not view the mosque merely as a construction project that was completed and forgotten. He continued to visit it and pray there. That teaches another important lesson about mosques today. Establishing a masjid is important, but keeping it active through prayer, learning, remembrance, and community participation is equally valuable.

What Masjid Quba Teaches Muslims Today

The legacy of Masjid Quba is not limited to Islamic history. Its story provides practical lessons for Muslim communities in every generation.

1. Build on Taqwa

The Qur’anic discussion surrounding the mosque emphasises righteousness and purification. A mosque should therefore begin with sincere intentions and remain centred on the worship of Allah.

The greatest legacy is not necessarily the largest building. It is a place where faith is strengthened.

2. Make Worship a Community Priority

The establishment of Masjid Quba during the Hijrah demonstrates how central the mosque was to the formation of Muslim communal life.

When Muslims have an accessible place to pray together, they gain more than physical shelter. Congregational worship strengthens relationships and creates regular opportunities for people to meet, learn, and support each other.

3. Work Together for Lasting Benefit

The story of the early Muslim community shows that building something meaningful requires cooperation.

This principle remains relevant when communities work together to establish mosques today. Some people may contribute financially. Others may offer skills, time, organisation or ongoing support.

Different contributions can come together to create something that benefits many people.

4. Think Beyond One Generation

A well-established mosque may serve parents, children and future generations.

People may pray there, children may learn Qur’an there, families may gather there and communities may find support there during difficult moments.

This is why helping establish a mosque can become a meaningful form of lasting charitable impact.

The Reward for Building a Mosque in Islam

The virtue of helping build a mosque is clearly established in authentic hadith.

Prophet Muhammad ﷺ said that whoever builds a mosque for Allah, seeking His pleasure, will have a house built for them in Paradise. This meaning is recorded in both Sahih al Bukhari and Sahih Muslim.

The emphasis on seeking Allah’s pleasure is essential.

Islam does not teach Muslims to build mosques merely for recognition, status or personal praise. The spiritual value comes from sincerity and serving the worship of Allah.

A mosque can also produce benefits for years. Every congregation that gathers, every child who learns and every worshipper who finds a safe place to pray can be part of the continuing good created by that space.

For communities without a suitable masjid, contributing towards mosque construction can therefore meet both a spiritual and practical need.

Why Mosques Still Matter to Communities

More than fourteen centuries after Masjid Quba was established, the basic need for a mosque has not disappeared.

A functioning mosque can provide space for:

  1. Daily and congregational prayers
  2. Qur’an learning and Islamic education
  3. Community gatherings
  4. Spiritual guidance
  5. Wudu and prayer facilities
  6. Support for children and families
  7. Community charity and assistance

Al Qulub Trust explains that some Muslim communities still gather for prayer under trees, in open spaces or inside cramped homes because there is no suitable mosque nearby. Its mosque projects are designed according to local needs, with a typical project including a prayer hall for approximately 100 to 300 worshippers together with wudu and sanitation facilities.

For communities facing these circumstances, a masjid can create something fundamental: a dignified and reliable place to worship Allah together.

Continue the Legacy of Building Houses of Allah

Masjid Quba began with a simple but powerful principle: establish a place upon faith where people can worship Allah and grow together as a community.

The buildings Muslims construct today will never carry the unique status of Masjid Quba. Yet the Prophetic encouragement to help establish mosques remains relevant.

A mosque built in an underserved community can become a place where the adhan is heard, salah is established, children learn, neighbours meet, and worshippers find spiritual comfort.

Through the Al Qulub Trust Masjid Build Appeal, you can contribute towards providing dedicated places of worship for communities that currently lack suitable mosque facilities.

You do not need to build an entire mosque alone to participate in the good. Collective giving allows many people to contribute towards a shared place of worship and community benefit.

A contribution made sincerely for Allah can become part of something that continues serving people long after the original donation was made.

FAQs

Why is Masjid Quba called the first mosque in Islam?

Masjid Quba is commonly called the first mosque in Islam because it was established by Prophet Muhammad ﷺ and the early Muslim community during the Hijrah before he continued into central Madinah. It should not be understood as the first mosque ever built on earth.

Where is Masjid Quba located?

Masjid Quba is located in Madinah, Saudi Arabia. It was established in the Quba area during Prophet Muhammad’s ﷺ migration from Makkah to Madinah.

What is the reward for praying in Masjid Quba?

A hadith in Sunan Ibn Majah states that a person who purifies themselves at home, goes to Masjid Quba and offers prayer there receives a reward like that of Umrah.

What is the reward for helping build a mosque?

Authentic hadiths state that whoever builds a mosque for Allah will have a house built for them in Paradise. The narrations emphasise sincerity and seeking the pleasure of Allah.

How can I help build a mosque?

You can contribute towards mosque construction through the Al Qulub Trust Masjid Build Appeal. Donations help provide prayer spaces and essential facilities for Muslim communities that lack a suitable local mosque.

More News you might be interested in

August 14, 2026

Ansar and Muhajirun: Brotherhood & Refugee Support

When the early Muslims left Makkah for Madinah, many were leaving behind homes, property, businesses, family connections, and the security of familiar...
August 10, 2026

Al-Qulub Trust Delivers Hot Meals to Displaced Families at Al Hayat Camp

Compassion Served with Dignity: Hot Meals Delivered to Displaced Families at Al Hayat Camp On Saturday, 27 June 2026, the Al-Qulub Trust team deliver...
July 31, 2026

What Can a £10, £20 or £50 Healthcare Donation Buy?

Most people want to give to healthcare causes. But most people also want to know what their money actually does. Not in vague terms. Not in broad mis...
July 29, 2026

Rabi’ Al-Awwal 2026: Importance of the blessed month in Islam

Rabi’ Al-Awwal is the third month of the Islamic calendar, and in 2026 it is expected to fall between 14th August and 11th September. The name “Ra...
July 28, 2026

How to Observe 12 Rabi-ul-Awwal: A Guide to Worship, Reflection & Charity

12 Rabi ul Awal holds a special place in the Islamic calendar as the day widely believed to mark the blessed birth of Prophet Muhammad (peace be upon ...
July 27, 2026

Why Muslims Give Sadaqah in Safar 1448

 Safar arrives quietly. No special fasts are prescribed. No specific nights are elevated above others. No grand commemorations mark its days. And ye...
July 22, 2026

15,000 Litres of Clean Water Delivered to North Gaza

In the summer heat of North Gaza, clean water does not arrive through a tap. It arrives on a tanker. It arrives after hours of waiting under a scorchi...
July 20, 2026

How to Help Sudan from the UK: 7 Meaningful Ways

People in the UK can help Sudan by donating through a verified humanitarian charity, giving Zakat or Sadaqah, adding Gift Aid, setting up monthly supp...
July 16, 2026

Water Crisis in Gaza Explained: What Is Really Happening and Why It Matters

Gaza's water crisis is a near-total collapse of water infrastructure affecting over two million people. As of June 2026, only 40% of Gaza's drinking w...

© Copyright Al-Qulub Trust 2026. | Registered Charity Number: 1201517

Website by Pillar Platform

Quick Donate

Quick Donate Support our projects

£