Its story is the one told in the hadith of Ibn Abbas: when Hagar ran between Safa and Marwa searching for water for her son, an angel struck the ground and water came out at the place now called Zamzam. It is why the barren valley, which the Quran calls a valley without crops, became a place where people could live and where Mecca grew up around the House of God.
The Companion Abu Dharr stayed in Mecca for thirty days and nights with no food but the water of Zamzam, and he said he grew fat and did not feel the weakness of hunger. The Prophet Muhammad ﷺ said to him, 'It is blessed; it is a food that nourishes.' In Jabir's account of the Hajj, the Prophet ﷺ also drank from Zamzam after his circling of the Kaaba on the day of sacrifice.
Today Zamzam water is supplied in the Sacred Mosque and pilgrims drink it and carry some home to share with their families. Many Muslims say a dua as they drink it, as they would with any water. The Prophet's words describe it as blessed and nourishing, and Muslims do not need to attribute any other magical powers to it. Its real value is as a reminder of Hagar's trust in Allah and of His provision in a place where there seemed to be none.