Hajar nursed Ismail and drank from the water until it ran out. Then both were thirsty, and she saw her son in distress. She could not bear to watch, so she went to the nearest hill, Safa, and looked toward the valley to see whether anyone was there. She saw no one.
She went down, and when she reached the valley she lifted the edge of her garment and ran like a person in distress until she crossed it, and then she reached Marwa and looked again. She did this seven times. Ibn Abbas said that the Prophet ﷺ said: "That is the running of people between them" (Sahih al-Bukhari 3364).
On Marwa she heard a voice. She said, "Quiet," and listened again. Then she said that she had heard it, and asked for help if the speaker had any aid. She found an angel at the place of Zamzam. In Sahih al-Bukhari 3364 the angel dug with his heel or wing until water appeared. In Sahih al-Bukhari 3365 the angel is named as Jibril.
She made a basin around the water and scooped from it into her skin, and the water kept gushing after she scooped. The Prophet ﷺ said: "May Allah have mercy on the mother of Ismail. Had she left Zamzam, or he said, had she not scooped from the water, it would have been a flowing spring."
She drank and nursed her son. The angel told her not to fear being lost, because this was the place of the House of Allah, which the boy and his father would build, and Allah does not let His people be lost.