Dhul Hulayfah (Abyar Ali): The Miqat of Madinah
Ziyarat

Dhul Hulayfah (Abyar Ali): The Miqat of Madinah

Dhul Hulayfah, also called Abyar Ali, is the miqat of the people of Madinah, where the Prophet ﷺ entered ihram for his Farewell Hajj. Learn its history, the ihram rules and how to get there.

Updated 28 November 2026Reviewed by the UmraHajj travel team

Dhul Hulayfah, known today as Abyar Ali, is the miqat of the people of Madinah, about 10 km south-west of Masjid an-Nabawi. It is the point the Prophet ﷺ fixed for those travelling from Madinah to Makkah for Hajj or Umrah, and it is where he himself entered ihram for the Farewell Hajj.

Its large mosque, Masjid al-Shajarah (the Mosque of the Tree), is one of the most important stops for pilgrims who visit Madinah first. Unlike most ziyarat sites, it has a clear and practical place in the Sunnah: you come here to begin an act of worship.

Pilgrims entering ihram at the miqat of Dhul Hulayfah near Madinah
Pilgrims bathe, change and make their intention at the miqat before setting off for Makkah.

Dhul Hulayfah: history and significance

A miqat fixed by the Prophet ﷺ

Ibn ‘Abbas reported that the Prophet ﷺ fixed Dhul Hulayfah for the people of Madinah, al-Juhfah for the people of Sham, Qarn al-Manazil for the people of Najd and Yalamlam for the people of Yemen, and said: “They are for them and for those who come to them from elsewhere, intending Hajj or Umrah” (al-Bukhari and Muslim). Those living closer to Makkah enter ihram from where they are.

Dhul Hulayfah is the farthest of the miqats from Makkah, about 420 km by road. Scholars have noted the wisdom of this: the people of Madinah begin their journey of worship from the city of the Prophet ﷺ himself.

The Farewell Hajj

Anas ibn Malik reported that in 10 AH the Prophet ﷺ prayed Dhuhr in Madinah as four rak‘ahs and ‘Asr at Dhul Hulayfah as two, then spent the night there (al-Bukhari and Muslim). The next day he entered ihram. Ibn ‘Umar said that the Prophet ﷺ began the talbiyah from the mosque, when his camel stood up with him (al-Bukhari and Muslim).

‘Umar ibn al-Khattab reported the Prophet ﷺ saying, while in the valley of al-‘Aqiq, which runs beside the miqat: “Someone came to me tonight from my Lord and said: Pray in this blessed valley, and say: Umrah within Hajj” (al-Bukhari).

The mosque of the tree

The mosque is called Masjid al-Shajarah because the Prophet ﷺ stopped there under a tree. Ibn ‘Umar reported that when the Prophet ﷺ set out for Makkah he would pray at the Mosque of the Tree (al-Bukhari). The present building is a large modern complex, rebuilt and expanded on a grand scale in the late twentieth century, with extensive facilities for pilgrims.

Why “Abyar Ali”?

The popular name Abyar Ali, “the wells of ‘Ali”, came much later. Stories that ‘Ali ibn Abi Talib fought the jinn at these wells have no basis, and scholars such as Ibn Taymiyyah rejected them. The correct, Prophetic name is Dhul Hulayfah.

What is from the Sunnah at Dhul Hulayfah (and what is not)

If you travel from Madinah to Makkah intending Umrah or Hajj, entering ihram at or before Dhul Hulayfah is obligatory, not optional. Passing it without ihram while intending Umrah is a serious error; most scholars say you must go back to the miqat, or else a sacrifice (dam) is due.

Sunnah acts of ihram

  • Ghusl: bathing for ihram is a Sunnah. When Asma’ bint ‘Umays gave birth at Dhul Hulayfah, the Prophet ﷺ told her to bathe, bind herself and enter ihram (Muslim). This also shows that women in menstruation or after childbirth can enter ihram; they simply wait until they are pure before tawaf.
  • Perfume: men may perfume the body, not the ihram garments, before the intention. ‘A’ishah said she perfumed the Prophet ﷺ for his ihram before he entered it (al-Bukhari and Muslim).
  • Talbiyah: begin it once the intention is made, men aloud and women quietly.

What is not from the Sunnah

Visiting Dhul Hulayfah without ihram has no special reward of its own beyond praying in a mosque. Avoid wiping the walls or pillars for blessing, taking water, soil or stones as relics, tying cloth to trees or railings, and repeating stories about ‘Ali and the jinn. Saying the intention in a long formula is also unnecessary; it is in the heart, with a short verbal phrase.

What to do and what to read at Dhul Hulayfah

  1. Prepare

    Trim nails and hair if needed. Bathe at your hotel or in the miqat’s bathing rooms.

  2. Change

    Men put on the two ihram sheets; women wear ordinary modest clothing, without niqab or gloves once in ihram.

  3. Pray

    Pray an obligatory prayer if it is due, or two rak‘ahs in the mosque.

  4. Make the intention

    Intend Umrah in your heart and say “Labbayk Allahumma ‘umrah”. If you fear being prevented, you may add the condition.

  5. Recite the talbiyah

    Repeat it often on the road to Makkah until you begin tawaf.

Intention for UmrahAt or before the Miqat, once you are in ihram

لَبَّيْكَ اللَّهُمَّ عُمْرَةً

Labbayk Allahumma ‘umrah.

Here I am, O Allah, for Umrah.

Source: Muslim
The TalbiyahFrom the Miqat until you begin tawaf (Umrah); repeat it often and aloud (men)

لَبَّيْكَ اللَّهُمَّ لَبَّيْكَ، لَبَّيْكَ لَا شَرِيكَ لَكَ لَبَّيْكَ، إِنَّ الْحَمْدَ وَالنِّعْمَةَ لَكَ وَالْمُلْكَ، لَا شَرِيكَ لَكَ

Labbayk Allahumma labbayk, labbayka la sharika laka labbayk, inna-l-hamda wa-n-ni‘mata laka wa-l-mulk, la sharika lak.

Here I am, O Allah, here I am. Here I am, You have no partner, here I am. All praise, blessings and sovereignty belong to You. You have no partner.

Source: al-Bukhari and Muslim

From this moment the prohibitions of ihram apply. Our step-by-step Umrah guide takes you from here to the end of Umrah.

How to get to Dhul Hulayfah from Masjid an-Nabawi

Dhul Hulayfah is about 10 km south-west of Masjid an-Nabawi, on the road to Makkah. Times below are approximate.

  • Taxi or ride-hailing: 15 to 25 minutes, depending on traffic. Ask the driver to wait if you are returning to your hotel.
  • Coach to Makkah: group coaches and intercity buses from Madinah usually stop at the miqat so passengers can change and pray.
  • City bus: local routes change; check the current Madinah bus services before relying on them.
  • Walking: not practical from the Haram.

Taking the Haramain train

The miqat applies to train passengers too. A common approach is to put on ihram at your hotel and make the intention before the train passes the line of the miqat, which comes early in the journey; some pilgrims go to Dhul Hulayfah first to pray and make the intention there. If in doubt, making the intention at boarding is safer than being late. Timetables and rules change, so check locally or on Nusuk.

Practical tips for Dhul Hulayfah

Bathe at the hotel

The miqat has large bathing areas, but they are busy when coaches arrive.

Time it with a prayer

Entering ihram after an obligatory prayer follows the Prophet’s ﷺ practice.

Spare ihram

Shops near the mosque sell ihram, belts and sandals if you forgot anything.

Women’s facilities

Separate changing, washing and prayer areas are provided for women.

Plan the arrival

The drive to Makkah takes four to five hours; aim to arrive rested for tawaf.

Children in ihram

Children can enter ihram too; a guardian makes the intention for an infant.

Dhul Hulayfah quick facts

CityMadinah
Other namesAbyar Ali; Masjid al-Shajarah (the mosque)
DistanceAbout 10 km south-west of Masjid an-Nabawi; about 420 km from Makkah
Time neededAbout 30 minutes, longer if you bathe and change here
Best timeBefore leaving for Makkah, ideally around a prayer
DifficultyEasy
SunnahYes: the miqat fixed by the Prophet ﷺ for Madinah
Location

Dhul Hulayfah (Abyar Ali)

About 10 km south-west of Masjid an-Nabawi

Open in Google MapsNearby ziyarat
MadinahAdd Madinah to your UmrahNights near Masjid an-Nabawi, Rawdah permits and ziyarat — we include it in your proposal.Madinah city guide →

Our miqat guide covers every route into Makkah, and our Madinah city guide and Madinah ziyarat guide help you plan your days before leaving. Nearby, visit Masjid Quba and Masjid al-Qiblatayn; in Makkah, compare Masjid Aisha at al-Tan‘im. Use the ziyarat route planner, browse the ziyarat hub, or request a tailored quote.

Dhul Hulayfah: frequently asked questions

Is Abyar Ali the same as Dhul Hulayfah?

Yes. Abyar Ali is a later popular name; Dhul Hulayfah is the name used by the Prophet ﷺ.

Do I have to enter ihram at Dhul Hulayfah?

If you travel from Madinah to Makkah intending Umrah or Hajj, yes: you must be in ihram before passing it.

I am visiting Madinah only. Do I need ihram?

No. Ihram is only needed when you head to Makkah with the intention of Umrah or Hajj.

Can a woman on her period enter ihram here?

Yes. The Prophet ﷺ told Asma’ bint ‘Umays, who had just given birth, to bathe and enter ihram (Muslim). She delays tawaf until she is pure.

Must I pray two rak‘ahs for ihram?

Scholars differ on a specific ihram prayer. Entering ihram after an obligatory or voluntary prayer is good in either view.

What if I passed the miqat without ihram?

Most scholars say you should return to the miqat and enter ihram; otherwise a sacrifice is due. Ask a scholar about your case.

Madinah first, then Umrah

We plan your nights in Madinah and a comfortable transfer via Dhul Hulayfah, timed so you arrive in Makkah rested for Umrah.

Get my tailored quote →
Chat with us