All agree that Allah (SWT) created the well to provide Hajira, the wife of Prophet Ibrahim (peace be upon him), and her baby Prophet Ismail (peace be upon him) with water in the hot, dry valley they were in, around the year 2000 BC.

In her desperate search for water, Hajira ran seven times back and forth in the scorching heat between the two hills of Safa and Marwa to provide for her baby who was dying of thirst. Today, this same act is a necessary rite of Hajj pilgrimage all Muslims, mothers and fathers, must complete.

Prophet Ibrahim (peace be upon him) settled his family there as part of Allah's mission for him. The first thing Hajira had to do then was to look for water in the area. She was searching for it while watching at her son and would run whenever she could not see Ismail. Allah (SWT) saw her effort and miraculously blessed the spot with a water spring, at the feet of Prophet Ismail (as).