As per Islamic history Zamzam Well was revealed to Hajar, the wife of Abraham (Ibrahim) and mother of Ishmael,[2] around the year 2000 BC. According to Islamic tradition, she was desperately seeking water for her infant son, but could find none, as Mecca is located in a hot dry valley with few other sources of water. Muslim traditions say that Hajar ran seven times back and forth in the scorching heat between the two hills of Safa and Marwah, looking for water. God then sent the angel Jibril (Gabriel) who dug a hole in the ground and caused the spring to appear. On finding the spring, Hajar confined the pool of water with sand and stones. Other versions of the story say that the water just suddenly appeared at the feet of Ishmael, or that the angel Jibril scraped the ground with his heel or brushed it with the tip of his wing and the Zamzam appeared.
The name of the well comes from the phrase Zomë Zomë, meaning ‘stop flowing’, a command repeated by Hajar during her attempt to contain the spring water.
According to Islamic tradition, Abraham rebuilt the Bait-ul-Allah (House of Allah) at the site of the well, a building which had been originally constructed by Adam, and today is called the Kaaba, a building towards which all Muslims around the world face in prayer, five times each day. The Zamzam well is located approximately 20 meters east of the Kaaba. Muslim tradition says that the well eventually disappeared because of the sins of the tribe of Jurhum, a controlling tribe of Mecca, who had perhaps filled in the Well when they were driven out of Mecca. The well was then rediscovered by Muhammad’s grandfather, Abd al-Muttalib, who experienced a dream where the position of the well was revealed to him.