The rites performed at Hajj today were established by the Prophet Muhammad (sallallahu alaihi wa sallam) but, based on the Qur’an, they can be traced back to the Prophet Ibrahim, (alaihis salaam), also referred to in English as Abraham.
Muslims believe that Ibrahim (alaihis salaam) was ordered by Allah to leave his wife Hajar and his son Ismail alone in the desert of ancient Mecca. In search of water, Hajar desperately ran seven times between the two hills of Safa and Marwah but found none. Returning in despair to Ismail, she saw the baby scratching the ground with his leg and a water fountain sprang forth at the site.
This is the Well of Zamzam in the Masjid al-Haram in Mecca. Pilgrims visit the well while performing Hajj or the Umrah pilgrimage to drink its water.