But God said to Abraham: "Do not be distressed about the boy or about your slave woman. Heed the demands of Sarah, no matter what she is asking of you; for it is through Isaac that descendants shall bear your name.
Early the next morning Abraham got some bread and a skin of water and gave them to Hagar. Then, placing the child on her back, he sent her away. As she roamed aimlessly in the wilderness of Beer-sheba,
and then went and sat down opposite him, about a bowshot away; for she said to herself, "Let me not watch to see the child die." As she sat opposite him, he began to cry.
God heard the boy's cry, and God's messenger called to Hagar from heaven: "What is the matter, Hagar? Don't be afraid; God has heard the boy's cry in this plight of his.
Therefore, swear to me by God at this place that you will not deal falsely with me or with my progeny and posterity, but will act as loyally toward me and the land in which you stay as I have acted toward you."
When they had thus made the pact in Beer-sheba, Abimelech, along with Phicol, the commander of his army, left and returned to the land of the Philistines.