The child grew and was weaned, and on the day Isaac was weaned Abraham held a great feast. But Sarah saw that the son whom Hagar the Egyptian had borne to Abraham was mocking, and she said to Abraham, “Get rid of that slave woman and her son, for that woman’s son will never share in the inheritance with my son Isaac.”
The matter distressed Abraham greatly because it concerned his son. But God said to him, “Do not be so distressed about the boy and your slave woman. Listen to whatever Sarah tells you, because it is through Isaac that your offspring will be reckoned. I will make the son of the slave into a nation also, because he is your offspring.”
Early the next morning Abraham took some food and a skin of water and gave them to Hagar. He set them on her shoulders and then sent her off with the boy. She went on her way and wandered in the Desert of Beersheba.
When the water in the skin was gone, she put the boy under one of the bushes. Then she went off and sat down about a bowshot away, for she thought, “I cannot watch the boy die.” And as she sat there, she began to sob.
God heard the boy crying, and the angel of God called to Hagar from heaven and said to her, “What is the matter, Hagar? Do not be afraid; God has heard the boy crying as he lies there. Lift the boy up and take him by the hand, for I will make him into a great nation.”
Then God opened her eyes and she saw a well of water. So she went and filled the skin with water and gave the boy a drink.
God was with the boy as he grew up. He lived in the desert and became an archer. While he was living in the Desert of Paran, his mother got a wife for him from Egypt.
At that time Abimelek and Phicol the commander of his forces said to Abraham, “God is with you in everything you do. Now swear to me here before God that you will not deal falsely with me or my children or my descendants. Show to me and the country where you now reside as a foreigner the same kindness I have shown to you.”
Abraham said, “I swear it.”
Then Abraham complained to Abimelek about a well of water that Abimelek’s servants had seized. But Abimelek said, “I don’t know who has done this. You did not tell me, and I heard about it only today.”
So Abraham brought sheep and cattle and gave them to Abimelek, and the two men made a treaty. Abraham set apart seven ewe lambs from the flock, and Abimelek asked Abraham, “What is the meaning of these seven ewe lambs you have set apart by themselves?”
He replied, “Accept these seven lambs from my hand as a witness that I dug this well.”
So that place was called Beersheba, because the two men swore an oath there.
After the treaty had been made at Beersheba, Abimelek and Phicol the commander of his forces returned to the land of the Philistines. Abraham planted a tamarisk tree in Beersheba, and there he called on the name of the LORD, the Eternal God. And Abraham stayed in the land of the Philistines for a long time.