HomeSaudi ArabiaMedinaMasjid-u-Shajarah

Masjid-u-Shajarah

Attraction · Saudi Arabia

CountrySaudi Arabia Best timeFlexible TypeAttraction
© Aiman titi / CC BY-SA 3.0

Located 7 kilometers (4.3 miles) southwest of Al-Masjid an-Nabawi in Abyār ʿAlī, Medina, Masjid Dhu al-Hulayfah—also known as Mīqāt Dhu al-Ḥulayfah or the Mosque of the Tree—is a sacred destination you will encounter west of Wadi al-'Aqiq. As the second-largest miqat mosque, it marks the historical site where the Prophet Muhammad entered the state of ihram for 'Umrah following the Treaty of Hudaybiyyah, defining it as the designated miqat for pilgrims undertaking Hajj or Umrah from Medina. Originally constructed under Umayyad governor Umar II ibn 'Abdulaziz and significantly expanded under King Fahd, this expansive complex offers rich history and striking architecture.

When you visit, you will explore a 36,000-square-meter enclosure housing a 6,000-square-meter square mosque. Wander through two sets of arched galleries featuring long domes that frame a spacious 1,000-square-meter yard. At the center of the mosque, you can view a natural spring of water sheltered beneath a dome.

Look up to admire 13 roof domes and five surrounding minarets, including a distinct 64-meter (210-foot) minaret that transitions from a square base to a diagonal round top amid peaceful pathways, galleries, and trees.

What to see at Masjid-u-Shajarah

  • Historic miqat site where Prophet Muhammad entered ihram after the Treaty of Hudaybiyyah
  • Central spring of water housed directly beneath a dome inside the mosque
  • Unique 64-meter minaret featuring a square base and a diagonal round top
  • Arched galleries with long domes framing a wide 1,000-square-meter central yard
  • Surrounding enclosure featuring trees, pathways, and areas for ihram and wudu

Visiting tips

Utilize the extensive 20,000-square-meter enclosure area equipped with restrooms and dedicated spaces to change into ihram and perform wudu.

How long: 1-2 hours · Best time: Flexible

How to get there & what’s nearby

Masjid-u-Shajarah is easy to reach on Medina’s public transport, and pairs naturally with Quba Mosque and Masjid al-Qiblatain. For where to stay, the weather and full itineraries, see our Medina travel guide.

Plan your trip

See the full Medina travel guide for where to stay, the best time to visit and the top things to do.