Masjid al-Rayah in Makkah, historic site of Prophet Muhammad's ﷺ banner during the Conquest of Makkah

Masjid al-Rayah in Makkah: The Banner Mosque of Prophetic Victory

🗓️ Last Updated:

Masjid al-Rayah (Arabic: مسجد الراية) is also called (Masjid al-Jowdariyyah مسجد الجودرية), in Makkah, isn’t just a mosque that was demolished. Let’s face it: the majority of people pass by this spot without recognising its significance. But what’s the significance of this spot? This is where a banner of peace replaced swords, and the Prophet Muhammad placed a symbol of faith in it at the time of the Conquest of Makkah

This tiny spot was a sign to the world that the Truth had returned home. As opposed to other demolished sites, Masjid al-Rayah stood for something more personal. It was not just a brick-and-mortar. It was the echoes of an unwavering victory.

✅ TL;DR – Masjid al-Rayah (Mosque of the Banner)

Masjid al-Rayah, once located in Makkah near Al-Jowdariyyah, marks the sacred ground where Prophet Muhammad ﷺ planted his banner during the Conquest of Makkah.

Though demolished in 2012, its legacy remains. This guide uncovers its history, location, prophetic significance, and how pilgrims today can connect with the site’s spiritual memory.

Why Was Masjid al-Rayah So Important?

The Day That Changed Everything

When Prophet Muhammad came to Makkah in the 8th year of AH (January 1330 CE), the air was filled with emotion. In the past, he was exiled from the city due to the threat of death, but this time, the Prophet was returning to the city not in a horde of vengeance but with the spirit of the reformer. When He came to the city, he didn’t use His voice. He raised the banner that he handed to al-Zubayr ibn al-Awwam and instructed him precisely where to place it.

It was in a place called Al-Hajun, which is just outside the boundaries of the traditional city. The simple act of putting up a flag was more potent than any other speech. It was the moment that Makkah was no longer in opposition. The city had opened its heart to Islam.

The Banner Was More Than a Flag

It’s easy to see the flag as just cloth and a pole. However, this flag? It was an abrupt shift. The battle banner was an expression of dominance instead of peace. It represented the victory of the Prophet through forgiveness and not destruction. Masjid al-Rayah, which later erupted in the exact location, was more than just a mosque. 

It was a call to action. This is an example of how even the most dangerous city can be a refuge for Tawheed. The presence of Prophet Muhammad at this location and praying under the shadow of his banner demonstrated to the world what authentic leadership looked like.

Not Just a Landmark, But a Turning Point

According to historians such as al-Tabari and al-Azraqi, this wasn’t an open space. It was a sacred space, as evidenced by the experience. Their records not only mention the precise location of the flag but also the Prophet’s dua and prayers at the spot. In time, the soil received the respect of pilgrims, scholars and the earliest Muslim community.

 It wasn’t chosen because of its location or view, but because it represented the moment in time when Islam redefined what conquest meant. From that point forward, the land was no longer neutral. It became an ongoing memory.

From Dust to Sacred Structure

As time went by, the spot where the flag was once hung was not lost to history. It was revered. It was a moment of honour. The mosque, which rose from the foundation, was simple at first, but it was a homage to the peaceful conquest that changed Makkah forever. What made it so strong wasn’t its size or its marble. It was situated in the sand of change. Masjid al-Rayah became the living symbol of Islam’s arrival, not only in a city but in the heart of its citizens.

Why the Site Still Matters

Despite the fact that the building was destroyed to make room for expansion, the religious tale of Masjid al-Rayah still resonates throughout the Muslim world. It reminds the story of sacred occasions, leaving traces that are more profound than the structures. It teaches us that a flag erected in prayer and humility will stand taller than fortresses. It also shows that sometimes, the real power isn’t in the weapon but instead in the ability to forgive. This is why the story of this site isn’t only enjoyable but essential.

History of Evolution, Renovation, and Removal

The First Foundations and a Family Legacy

The first construction of Masjid al-Rayah was very personal to the person who built it. It wasn’t erected by a king or ordered by a politician. It was conceived by Abdullah bin Abbas bin Ali, who was a part of the Prophet’s extended family, which meant it was spiritually significant from the beginning. 

The intention was not to build an extravagant structure but rather to honour the sacred site in which the Prophet Muhammad planted his banner. It was not in order to conquer a city but rather to make it a better place. The small gesture, which was made to protect the land that Islam claimed as Makkah, was the reason for the mosque that remained for many centuries.

Abbasid Era: Cementing Its Status in History

Then, fast forward to the Abbasid Caliphate. In 640 AH (1242 CE), Caliph Al-Mustasim took the initiative to rebuild the site and give it a permanent structure. This wasn’t a simple brick-and-mortar project. It was a spiritual and political message: the memory of the Prophet’s peaceful victory in Makkah should not fade away. 

He didn’t transform the mosque into a fortress or palace. Instead, he defended its modest identity while bolstering the mosque’s religious symbolism with strong walls and more defined boundaries. In a time when several sacred sites were overlooked or not being used, this reconstruction served as a beacon of remembrance.

A Prince’s Renovation with a Vision

A century later, in the year 801 AH (1398 CE), another influential persona stepped up: Prince Qutulbek Al-Hussami. The mosque had been able to withstand the harsh desert winds and the effects of wear and tear. The renovation made more than just physical repairs. He also commissioned the construction of a minaret and a dome that was a landmark that elevated the place visually and spiritually. 

Visitors and locals alike could see the site from afar, and that alone inspired stories in schools, homes and even hearts. These improvements weren’t over the top. They represented a balance of respect and modesty, the exact essence of the flag that was once displayed there.

20th Century: A Royal Restoration

Jump to 1394 AH (1974 CE) under the reign of King Fahd bin Abdulaziz. The land of Makkah was rapidly changing. The number of pilgrims was increasing, the infrastructure was growing, and the preservation of the past was a top priority for the nation. Therefore, instead of eradicating Masjid al-Rayah, the kingdom decided to modernise it. The mosque was rebuilt during the supervision of King Fahd and renamed after him. However, they didn’t alter the mosque’s fundamentals. It was still a classic dome and a single minaret, and was elevated just a little as a reminder rather than an actual monument.

It’s important to remember this. The decision of King Fahd to keep the site was not about branding for the royal family. It was about continuity. His reconstruction was a message to a new generation of Saudis and foreigners alike: “We know where the flag of the Prophet Muhammad was. We’re not letting it fade away.”

2012: The Silent Farewell

In 1433 AH (2012 CE), the tide changed. The government commenced an enormous expansion of Masjid al-Haram‘s northern courtyard to accommodate millions of pilgrims. It was a necessity; however, it came with an emotional cost. Masjid al-Rayah was demolished, and with it, the Jowdariyyah neighbourhood, one of the oldest parts of the city, was holy. What’s more painful? The Well of Jubayr Ibn Mutim is a well that was tied to the prophetic and pre-Islamic past, which was wiped out, too.

But not everyone has forgotten. Elders from Makkah still indicated the site where the mosque was located. Guides quietly recount their tale. It is recited in duas and is mentioned in the groups of scholars and imams. The mosque may be gone physically, but its legacy is still alive and is reflected in our hearts, in the history books and even in this article.

The Legacy That Refuses to Die

Let’s face it: A structure can be ripped down. However, you can’t destroy faith. It’s impossible to silence the past with concrete and cranes. The story of Masjid al-Rayah lives on because it is more than just a place. It represents a time in history when Islam did not triumph through using swords but rather through prayers, surrender and forgiveness. From its humble beginnings until royal restorations and then its eventual removal, the history of the mosque tells a tale of perseverance not only in architecture but also in memories.

Every generation that walked through this mosque, from Abbasids to Saudis, added a layer of reverence, respect, and purpose. Every person who hears about the story adds a new layer. This is how the memory stays alive, not as a monument, but within the soul.

Spiritual Highlights of Masjid al-Rayah

  • Banners that the Prophet plans symbolize victory without violence
  • The historic dua site on which the Prophet is believed to have been believed to have
  • located in Al-Hajun, which was the former boundary for the outer boundaries of Makkah
  • Rebuilt through Dynasties and displaying a long-lasting reverence
  • Demonstrated in 2012 and is still recognised by pilgrims

Timeline of Masjid al-Rayah’s History

📜 Historical Timeline – Masjid al-Rayah

Year (AH/CE)EventNotable Figure
8 AH / 630 CEBanner planted during Conquest of MakkahProphet Muhammad ﷺ, al-Zubayr ibn al-Awwam
640 AH / 1242 CEFirst major reconstructionCaliph Al-Musta’sim
801 AH / 1398 CERenovation and dome addedPrince Qutulbek Al-Hussami
1394 AH / 1974 CEModern rebuild under King FahdKing Fahd bin Abdul Aziz
1433 AH / 2012 CEDemolished for Masjid al-Haram expansionSaudi Authority

You Can Also Read

Frequently Asked Questions About Masjid al-Rayah

Where exactly was Masjid al-Rayah located in Makkah?

It stood in the upper area of Makkah, near Al-Hajun, close to Masjid al-Jinn and the Well of Jubayr ibn Mutim.

Why was it called the Mosque of the Banner?

It was the exact place where the Prophet Muhammad ﷺ planted his banner during the Conquest of Makkah.

Did the Prophet ﷺ pray at Masjid al-Rayah?

Yes, according to early historians, the Prophet ﷺ performed prayer at the site after the banner was raised.

Is Masjid al-Rayah still standing today?

No, the mosque was demolished in 2012 during the Masjid al-Haram expansion project.

Who originally built the mosque?

It was built by Abdullah bin Abbas bin Ali, a member of the Prophet’s family line.

What was the mosque’s architecture like?

It was a modestly elevated structure with a dome and a single minaret, reflecting its historical legacy.

Was Masjid al-Rayah ever renamed?

Yes, it was later known as the King Fahd bin Abdulaziz Al Saud Mosque after its renovation.

Why was the mosque demolished?

It was removed as part of the northern courtyard expansion of Masjid al-Haram to accommodate more pilgrims.

What else was removed from the mosque?

The Jowdariyyah neighbourhood and the Well of Jubayr ibn Mut’im were also cleared in the same project.

Can I still visit the site where it stood?

You can’t visit the mosque anymore, but you can reflect nearby within the expanded Masjid al-Haram complex where the banner was once raised.

Which mosque is 700 years old?

Masjid al-Rayah was more than 700 years old prior to its demolition in 2012 (1433 AH). The original structure was constructed in 1242 CE (640 AH) by Caliph Al-Musta’sim. It had undergone numerous restorations by historic Islamic leaders, including Prince Qutulbek Al-Hussami and King Fahd bin Abdulaziz

Despite its small size, it remains the symbol of the Prophet Muhammad’s peaceful conquest of Makkah. Its legacy of forgiveness, faith and prophetic influence led to it being one of the oldest and most spiritually resonant mosques.

Which masjid was ordered by Allah to destroy?

The mosque referred to as Masjid al-Dirar was the one which was ordered by Allah to be destroyed by Allah. It is listed in Surah At-Tawbah (9:107-110). It was built during the time of the Prophet; it appeared to be righteous, but it was actually a place to create division within the Muslim community. 

The Prophet was given an order from God to destroy it, and it was later destroyed and burned. Contrary to Masjid al-Rayah, which was an area of unity and prophetic recall, Masjid al-Dirar was used to conceal the Truth in the name of worship.

What is the story of Masjid Fatah?

Masjid Fatah (also known as Masjid al-Fath) is one of the most famous mosques in Madina, and it is linked to the historic Battle of the Trench (Ghazwat al-Khandaq). It was built close to the spot where the Prophet Muhammad resided, and a powerful dua was made to win the battle. The mosque is located on a hill from which he viewed his enemies and prayed for divine assistance.

 Allah responded to that prayer, and the battle ended with the defeat of the Quraysh coalition. The battle continues today. Masjid Fatah is a part of the Seven Mosques (Sab’u Masajid) frequented by a lot of pilgrims from Madinah to remind us of perseverance, strategy, and divine help in the battle against massive odds.

Who is the owner of Masjid al-Haram?

Masjid al-Haram is not “owned” in the traditional sense by a person or an institution. It’s located under the custodianship of the Kingdom of Saudi Arabia. However, ultimately, it is regarded as the House of Allah (Baytullah), owned by no one and adored by all Muslims across the globe. 

The Custodian of the Two Holy Mosques at present, King Salman bin Abdulaziz, is responsible for its maintenance, maintenance, and services. However, Muslims believe that Masjid al-Haram belongs to the Ummah, and its sanctity stems from its divine status in Islam, not from the fact that humans own it.

Farrukh Farooqi Author Photo
About the Author

Farrukh Farooqi has been living in Sharaya, Makkah, Saudi Arabia since 2010. With over 14 years of firsthand experience witnessing the sacred journey of millions of pilgrims, Farrukh specializes in providing practical, insider tips for Hajj and Umrah travelers. His work blends real-world observations, the latest Saudi updates, and essential crowd management strategies — helping pilgrims and worshippers plan smarter, stay safer, and experience a spiritually fulfilling journey across the Holy Cities.

Related Posts