Long ago, according to Islamic tradition, the Prophet Ibrahim brought his wife Hajar and their baby son Ismail to a dry valley between bare, rocky hills. This valley would one day become the city of Makkah, but at that time there were no houses, no wells and no travellers resting there.
The tradition, preserved in the hadith collection of al-Bukhari, says that Ibrahim left them there with a bag of dates and a skin of water. Hajar asked whether God had commanded this. When she understood that it was so, she said that God would not abandon them. The Qur'an preserves Ibrahim's prayer for his family, whom he had settled in a valley without crops, near God's sacred House.
Soon the dates and the water were finished. Little Ismail grew thirsty and began to cry. Hajar could not bear to watch her child suffer, so she climbed the nearby hill of Safa and looked out across the valley, hoping to see someone who could help. She saw no one. She came down, crossed the valley floor, hurrying through its lowest part, and climbed the hill of Marwa. Again she saw no one.