Masjid al-Bay'ah near Jamarat Bridge in Mina, site of the first Islamic pledge of allegiance

Masjid al-Bay’ah: Legacy of the First Islamic Allegiance (2025 Guide)

🗓️ Last Updated:

Masjid al-Bay’ah is more than a simple mosque between Mina and Makkah–it is the centre of Islamic devotion. This modest structure in the valley, where thousands of pilgrims travel annually, symbolises the spiritual significance of the First and Second Pledges of al-Aqabah. In this mosque, the Ansar of Madina swore allegiance to the Prophet Muhammad (PBUH), inciting the historical Hijrah and profoundly influencing the first Muslim community.

 The mosque, which Caliph Abu Ja’far al-Mansur built, is likely to be overlooked by many, yet its significance lasts forever. Every brick is a sign of dedication, and every stone is a testimony to faith. In this article, you’ll learn the secret background of Masjid al-Bay’ah, discover why it remains an enduring symbol of devotion for Muslims today, and learn why visiting this sacred site transforms a ritual journey into an intimate connection to the origins of Islam.

✅ TL;DR – Masjid al-Bay’ah Overview

Masjid al-Bay’ah is one of the most under-appreciated Makkah historic treasures, hidden close to the Jamarat Bridge in Mina. This modest mosque is the location of the First and Second Pledges of al-Aqabah, where the Ansar of Madinah swear loyalty to Prophet Muhammad (PBUH) before the Hijrah. The mosque was constructed in 144 AH by Caliph Abu Ja’far al-Mansur. The structure stands as an enduring symbol of sacrifice and loyalty, and it is the beginning of the Islamic ummah.

Although it is small in size, its spiritual and emotional weight is immense. Pilgrims participating in Hajj or Umrah can visit it easily and reflect on the da’wah and brotherhood’s legacy. The mosque’s architecture is rooted in Abbasid roots, which have been preserved during Saudi restoration efforts. If you’re walking through Mina or examining Islamic history, this mosque offers more than a place to stop. It is a powerful connection to the earliest roots of Islam. It’s a must for anyone who wants to gain more depth in their spiritual path.

What Is Masjid al-Bay’ah and Why Does It Matter?

The history of the first and second pledges of al-Aqabah

Prayer courtyard of Masjid al-Bay’ah with multiple stone arches

Masjid al-Bay’ah, often called the Mosque of the Pledge, is an impressive testimony to one of Islamic history’s first and most significant events. Abbasid Caliph Abu Ja’far al-Mansur ordered it in 144 AH (761 AD), and it was not just a monument but a historical anchor for the next generation of Muslims to commemorate the origins of Islamic loyalty. 

This sacred spot is where the First and Second Pledges of al-Aqabah were signed and changed the course of the Prophet’s (PBUH) mission. At the beginning of the 600s CE, brave men from Yathrib (today’s Madina) were present at the Hajj to declare their undying support for the Prophet Muhammad (PBUH). 

These were not merely words of praise; they pledged to defend the Prophet with their lives should it become required. This oath of devotion was not just an emotional moment. It was an event that triggered the Hijrah (migration) to Madina, which led to the establishment of the first Islamic state and the expansion of Islam across Arabia. 

What transpired in Masjid al-Bay’ah was more than an act of faith; it was the moment when Islam transformed from a hated faith to a regulated, vibrant community. The mosque is silent today, hidden behind a fence, but its echoes are still heard. Being near it allows the pilgrims not just to be reminded of an event but to recall a history of faith, courage and deep faith.

Exterior view of Masjid Bay’ah surrounded by iron fencing

Role of the Ansar and Prophet Muhammad (PBUH)

It all started when six people from the Khazraj tribe of Yathrib arrived in Makkah in the Hajj season in the 11th year of prophethood. They had heard rumours of a prophet who claimed to be a prophet, and their curiosity led them to Him. The people’s hearts were sparked after listening to the Prophet Muhammad (PBUH) recite the Qur’an

They were not only amazed, they were transformed. They embraced Islam immediately, marking the start of a new relationship that would change the course of history. The following year, the same group returned along with six others. The group of twelve met the Prophet (PBUH) at al-Aqabah and pledged their faith and loyalty, later called the First Pledge of al-Aqabah

They promised to follow Him to uphold the truth and to reject idol worship. But the moment of change came one year later, during the 13th year of prophethood. Under the cover of night and secrecy, two men and 73 women were again gathered at al-Aqabah. They were not hesitant followers.

They were staunch believers ready to defend the Prophet (PBUH) with their lives. They pledged to uphold the Prophet (PBUH) as they would protect their families, even when it meant fighting the entire region of Arabia. This powerful Pledge was the Second Pledge of al-Aqabah, an occasion of clarity, courage and total surrender to the truth. This was more than an event in the background; it was the final step that resulted in the Hijrah, which forever altered the course of Islam.

Created by Caliph Abu Ja’far al-Mansur — significance in Islamic history

The pledges were not just events buried in a dusty book of the past. They were actual instances of honesty, selected by actual people who were at a pivotal point in the Islamic story. The First and Second Pledges of al-Aqabah were not abstract agreements; they were actual statements of faith and courage that were made in the dark of night at a time when Muslims were in a small number and vulnerable and targeted. 

These acts marked a significant change in the way that Muslims were treated: Islam was no longer a solely proclaimed message from Makkah but an entire movement that found an abode within the heart of the Ansar of Madina. Imagine a group of men swearing to defend the Prophet (PBUH) by sacrificing their lives amid a time when swearing to protect the Prophet could result in death. Their unwavering devotion established the emotional and structural foundations for what would soon be an enlightened Muslim society

The emotional heft of the past is still felt in Masjid al-Bay’ah, which makes it more than an area on the world map. For today’s pilgrims, it’s an essential spiritual checkpoint, a location to reflect, recharge, and be reminded that Islam spreads not through power but through people willing to sacrifice everything to achieve a higher goal. This is why the mosque is still essential. Its presence reminds us that faith is not just in rituals but in our decisions when nobody is watching.

Official info board outside Masjid al-Bay’ah explaining Aqabah Pledge

The Spiritual Weight of This Sacred Ground

Reflection of loyalty, migration and sacrifice

For Muslims who travel through Mina, it’s simple to pass Masjid al-Bay’ah without realising its significant history. For people who do stop, a new emotion is felt. It is the moment where faith is a catalyst for action, where brave women and men have pledged to abide by the Prophet (PBUH) and guard him. The present-day Masjid al-Bay’ah is an example of Islam not being spread through the sword but through dedication, loyalty, and sacrifice.

Role of Mus’ab ibn Umair and Abbas ibn Abdul Muttalib

Imagine yourself standing in the exact spot like Mus’ab ibn Umair (RA), whom the Prophet appointed to impart Islam in Yathrib following the Pledge of Aqaba first. Imagine Abbas ibn Abdul Muttalib, the Prophet’s uncle, who witnessed the second Pledge. He advised the Ansar of the responsibility they accepted. Their stories are told here.

Value of emotion for contemporary pilgrims

The size of the mosque isn’t the issue, but the scale of what took place here. Whether you’re doing Hajj or Umrah, it’s an area worth visiting, even for a brief moment of quiet contemplation.

Where Is Masjid al-Bay’ah Located?

Proximity to the Jamarat Bridge and Mina

Masjid al-Bay’ah is just 300m from Jamrat al-Aqabah near the Jamarat Bridge in Mina. It is in the middle of the legal boundary of Mina from the Makkah side and is located at the base of Jabal Thubayr in an area known historically as Sha’b al-Ansar. This makes it accessible to pilgrims performing Hajj, particularly during the Stoning of the Devil ceremony.

Exact location: Jabal Thubayr, Sha’b al-Ansar

The mosque is now located at the end of the second-level exit ramp of the Jamarat complex. Although it’s often closed, pilgrims can still look at it, stop by, and think of the powerful vows that were once made on this site.

How to find it during Hajj or Umrah

Clear signboards are erected in Mina close to the Jamarat exits, and guides frequently highlight them when performing Hajj rituals. A short stroll to Jamarat is enough to reunite with this part of Seerah.

Visitor Essentials at Masjid al-Bay’ah (2025)

🕋 Masjid al-Bay’ah – Key Facts

FeatureDetails
Masjid NameMasjid al-Bay’ah (Mosque of Allegiance)
Built ByCaliph Abu Ja’far al-Mansur, 144 AH / 761 AD
Spiritual SignificanceSite of the First & Second Pledges of al-Aqabah
Distance from JamaratApproximately 300 meters
Public AccessViewable from outside; sometimes open during Hajj
Nearby LandmarkLocated near the Jamarat Bridge in Mina
Key EventAllegiance to Prophet Muhammad (PBUH) by 75 early Muslims

Architecture and Preservation of Masjid al-Bay’ah

Original Abbasid structure

Although modest in size, Masjid al-Bay’ah’s architecture reflects the best of both Abbasid simplicity and Ottoman-era elegance. Its rectangular design covers about 375 to 500 square meters and is constructed using bricks, stone, and wooden beams. It has two open-air galleries and an open-air courtyard that was once the communal and spiritual central area of the mosque.

Renovation efforts and preservation status

The Qibla wall, oriented southwestwards towards Makkah, is adorned with the mihrab with small niches. Over the years, some original roofs and beams have deteriorated; however, the mosque’s arched entrancesniches, and simple elements maintain their originality.

Fencing and public access today

Renovation efforts have been underway during the Ottomans and, most recently, as part of the Mohammed bin Salman Historic Mosques Project in 2025. The project aims to restore the structure and conserve the original layout and spirituality intact. Although it is often not open to the public, the mosque is maintained as a holy monument to a significant period in Islamic history.

Why Every Pilgrim Should Visit Masjid al-Bay’ah

Unique value beyond rituals

Pilgrims who visit Mina visit Mina usually focus on rituals, such as the Stoning of the Jamarat or making their way back to Masjid al-Haram. Still, not many realise that just a few steps away is the exact location where the Islamic Brotherhood began. The journey to Masjid al-Bay’ah is not a religious ceremony; it’s a moment of personal reconnecting.

A lesson in unity and brotherhood

To be here is to think about the bravery of early Muslims, the foresight of the Prophet (PBUH), and the strength of the community. It’s where politics morphed into the unity of a community, where fear changed into faith, and history shifted its course.

Connecting with the roots of Islamic da’wah

For each pilgrim, a few minutes in Masjid al-Bay’ah can transform the journey from ritual to realisation because remembering where we started helps us to remember where we are heading.

❓ Frequently Asked Questions – Masjid al-Bay’ah

Where is Masjid al-Bay’ah located in Mina?

It’s 300 metres from Jamrat al-Aqabah, near the Jamarat Bridge on the Mina–Makkah route.

What took place at Masjid al-Bay’ah?

The First and Second Pledges of al-Aqabah occurred here, when the Ansar of Madinah pledged allegiance to Prophet Muhammad (PBUH).

Can you visit Masjid al-Bay’ah during Hajj?

Yes. It’s in the Jamarat area and accessible after the stoning rituals.

Who swore allegiance to al-Aqabah?

The early Muslims of Madinah, including leaders of the Aws and Khazraj tribes.

Does Masjid al-Bay’ah open to the public?

Usually, the fence is visible from the outside; it opens occasionally for special events.

What year was Masjid al-Bay’ah built?

It was constructed in 144 AH (761 AD) by Caliph Abu Ja’far al-Mansur.

What does “Bay’ah” mean in Islam?

Bay’ah means a pledge of allegiance to a political or religious leader.

What’s the relationship between Hajj and Masjid al-Bay’ah?

The pledges were made during Hajj season, linking the mosque to the spiritual journey of pilgrims.

Who was Mus’ab ibn Umair?

He was the first ambassador of Islam, sent to Madinah to teach after the First Pledge.

What could we take from this mosque?

Loyalty, sacrifice, unity—values central to Islam and exemplified by the Ansar.

What is the reason it’s referred to as the Forbidden Mosque?

The Masjid al-Haram in Makkah is called the “Forbidden Mosque” because non-Muslims are prohibited from entering and certain acts (e.g., hunting, cutting trees, fighting) are forbidden within its sacred boundary. The word “Haram” means sacred or prohibited, based on Qur’anic and Hadith guidance.

Which mosque was it that Allah ordered to be destroyed?

Masjid al-Dirar, mentioned in Surah At-Tawbah (9:107–110), was built by hypocrites to cause division. Allah commanded the Prophet (PBUH) to destroy it, as it wasn’t built with sincere intent.

What’s the Bay’ah al-Aqabah?

Bay’ah al-Aqabah refers to the two key pledges made by the people of Madinah to the Prophet Muhammad (PBUH) at al-Aqabah in Mina. The first was about accepting Islam; the second was about defending the Prophet—critical steps in forming the Islamic state in Madinah.

What makes Al-Aqsa Mosque so special in Islam?

Al-Aqsa Mosque in Jerusalem was the first Qiblah for Muslims and the site of Isra and Mi’raj. It is Islam’s third holiest mosque, following Masjid al-Haram and Masjid al-Nabawi, and holds deep ties to Islamic prophecy and eschatology.

You Can Also Read

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