The Mīqāt Dhu al-Ḥulayfah, also known as Masjid ash-Shajarah or Masjid Dhu al-Hulayfah, is a miqat and mosque in Abyār ʿAlī, Medina, west of Wadi al-'Aqiq, where the final Islamic prophet, Muhammad, entered the state of ihram before performing 'Umrah, after the Treaty of Hudaybiyyah.