Masjid al Bayah: The Mosque of the Pledges of al-‘Aqabah
Ziyarat

Masjid al Bayah: The Mosque of the Pledges of al-‘Aqabah

Masjid al Bayah is a small historic mosque near the Jamarat in Mina that marks the Pledges of al-‘Aqabah, when the people of Madinah first pledged to support the Prophet ﷺ. Learn its story and how to see it.

Updated 28 November 2026Reviewed by the UmraHajj travel team

Masjid al Bayah (Masjid al-Bay‘ah, “the Mosque of the Pledge”) is a small, roofless stone mosque in a narrow valley just behind Jamrat al-‘Aqabah in Mina. It marks the place where, before the Hijrah, groups from Yathrib, later called Madinah, met the Prophet ﷺ at night and pledged to believe in him and protect him.

Those two pledges opened the way for the Hijrah and the first Muslim community in Madinah. Seeing the site, even from outside its railings, brings one of the turning points of the Seerah to life.

Masjid al Bayah near the Jamarat in Mina, east of Makkah
The mosque lies in a small valley beside the Jamarat complex in Mina.

The history of Masjid al Bayah

In the years before the Hijrah, the Prophet ﷺ used to present Islam to the tribes who came to Makkah for the pilgrimage season. Most turned him away. Then a small group from the Khazraj of Yathrib listened, believed and promised to return the following year. Their meetings took place at al-‘Aqabah, the hill pass at the Makkah end of Mina, which is also the site of the largest Jamrah.

The first Pledge of al-‘Aqabah

The next season, twelve men came from both the Aws and the Khazraj. They pledged not to associate anything with Allah, not to steal, not to commit adultery, not to kill their children, not to slander, and not to disobey him in what is right. ‘Ubadah ibn as-Samit, who was present at al-‘Aqabah, reported a pledge in these terms (al-Bukhari and Muslim). The Seerah writers link this wording with the first pledge, although some scholars place it later.

The books of Seerah relate that the Prophet ﷺ sent Mus‘ab ibn ‘Umayr back with them to teach the Qur’an, and that within a year Islam had spread through the households of the Ansar.

The second Pledge of al-‘Aqabah

The following season, in 622 CE, more than seventy men and two women met the Prophet ﷺ secretly at night during the days of Tashriq. This time they pledged to hear and obey, to spend in hardship and ease, to speak the truth, and to protect him as they protected their own families if he came to them. Jabir ibn ‘Abdullah’s account of this pledge is reported by Ahmad, and the details of the night are recorded in the Seerah of Ibn Ishaq.

According to the same Seerah sources, his uncle al-‘Abbas, not yet a Muslim, was present to make sure the agreement was serious, and twelve leaders (nuqaba’) were chosen from among the Ansar. Within months the Companions began migrating to Madinah, followed by the Prophet ﷺ himself.

The mosque itself

Historians report that the Abbasid caliph Abu Ja‘far al-Mansur built a mosque here in the second century AH to mark the event; an inscription commonly dated to 144 AH is linked with it. The building you see is small, with stone walls, an open courtyard and a prayer area of arches. During the redevelopment of the Jamarat area it was cleared and restored, and today it is fenced in and often closed. The exact spot of the pledges within the area is not known with certainty.

Masjid al Bayah: what is from the Sunnah (and what is not)

There is no hadith giving a special virtue to praying in Masjid al Bayah or to visiting it, and the Prophet ﷺ did not instruct his Companions to visit the place of the pledges. The site is valuable as a lesson in history, not as a rite.

Mina as a whole is part of the rites of Hajj. Staying in Mina on the nights of Tashriq and stoning the Jamarat are acts of the Sunnah and of Hajj, but they are tied to the days of Hajj. A visit to Masjid al Bayah outside those days is an outing, not a rite.

What to do and what to read at Masjid al Bayah

Since there is no prescribed dua at Masjid al Bayah, use the visit to reflect. Recall the courage of the Ansar who pledged to protect the Prophet ﷺ while they were few and the Quraysh were powerful, and the promise given to them: Paradise.

Allah says of a later pledge, “Indeed, those who pledge allegiance to you are only pledging allegiance to Allah” (Qur’an 48:10). The Prophet ﷺ said, “The sign of faith is love of the Ansar, and the sign of hypocrisy is hatred of the Ansar” (al-Bukhari and Muslim). Many visitors make dua for the Companions and ask Allah to make them firm on their own commitments. Any sincere dua in your own words is fine.

If you are on a guided tour, ask the guide to tell the story in order: the first meeting, the first pledge, Mus‘ab’s mission, and the second pledge. It makes the walk round the valley far more meaningful.

How to get to Masjid al Bayah from Masjid al-Haram

Masjid al Bayah lies a few hundred metres from Jamrat al-‘Aqabah, at the Makkah end of Mina, about 5 km east of Masjid al-Haram.

Taxi or private car: the easiest option, taking about 15 to 20 minutes outside Hajj and peak hours. Ask the driver for the Jamarat area or “Masjid al-Bay‘ah”; drivers on holy-site tours usually know it.

Tour: most half-day tours of Mina, Muzdalifah and Arafat include Masjid al Bayah as a brief stop or drive-past. This is often the simplest way, as the site is easy to miss.

Walking: the pedestrian tunnels from the Aziziyah area towards Mina can be used, but the route is long, hot and confusing for first-time visitors.

During the Hajj season the area around the Jamarat is restricted to registered pilgrims, and access is controlled by the authorities. Outside Hajj, the mosque gate may be locked. Check locally before you set out, and accept that you may only see it through the railings.

Practical tips for visiting Masjid al Bayah

Combine with Mina

Pair the visit with Mina, the Jamarat and Masjid al-Khayf on one morning tour.

Go in the morning

The valley is exposed and hot; early morning is far more comfortable.

Expect a fence

The mosque is often closed. Viewing it from outside is normal and is enough.

Know the story

Read about the two pledges before you go so the visit is meaningful.

Avoid Hajj days

Access is limited to pilgrims during the Hajj season.

Bring water

There is little shade or shopping right beside the site.

Masjid al Bayah quick facts

CityMakkah (Mina)
LocationNear Jamrat al-‘Aqabah, about 5 km east of Masjid al-Haram
Time neededAbout 15–20 minutes on site
Best timeMorning, outside the Hajj season
DifficultyEasy
Open to visitorsUsually viewed from outside; the gate is often closed
SunnahNo special virtue; a historical visit
Location

Masjid al-Bay‘ah

Near the Jamarat, Mina side

Open in Google MapsNearby ziyarat
Hajj 2027Preparing for Hajj? Start with the official routeSee how registration works from your country and request guidance for your Hajj journey.Explore Hajj →

For the wider area, read our pages on the Jamarat, Mina and Masjid al-Khayf, and see our Makkah city guide for getting around. The Hajj step-by-step guide explains the days spent in Mina. Use the ziyarat route planner to build a morning tour, browse the ziyarat hub, or request a tailored quote for a guided visit.

Masjid al Bayah: frequently asked questions

What does Masjid al Bayah commemorate?

The Pledges of al-‘Aqabah, when believers from Madinah pledged to follow and protect the Prophet ﷺ in the two years before the Hijrah.

Who built the mosque?

Historians attribute it to the Abbasid caliph Abu Ja‘far al-Mansur in the second century AH. It has since been restored.

Can I go inside?

Sometimes. The mosque is fenced and frequently locked, so most visitors see it from outside. Check locally before you go.

Is there a special reward for praying there?

No. No authentic hadith mentions a particular reward. Praying there, if it is open, is like praying in any mosque.

Can I visit during Hajj?

Only if you are a registered pilgrim in that part of Mina. Access around the Jamarat is tightly controlled during the Hajj days.

Is it the exact place of the pledges?

It marks the area of al-‘Aqabah where the pledges took place, but the precise spot is not known with certainty.

Understand the holy sites before Hajj

We can add a guided tour of Mina, the Jamarat and Masjid al Bayah to your Umrah, told accurately and respectfully.

Request my proposal →
Chat with us