But God came to Abimelech in a dream one night and said to him, "You are as good as dead because of the woman you have taken; she is a married woman."
Now Abimelech had not gone near her, so he said, "Lord, will you destroy an innocent nation?
Did he not say to me, 'She is my sister,' and didn't she also say, 'He is my brother'? I have done this with a clear conscience and clean hands."
Then God said to him in the dream, "Yes, I know you did this with a clear conscience, and so I have kept you from sinning against me. That is why I did not let you touch her.
Now return the man's wife, for he is a prophet, and he will pray for you and you will live. But if you do not return her, you may be sure that you and all yours will die."
Early the next morning Abimelech summoned all his officials, and when he told them all that had happened, they were very much afraid.
Then Abimelech called Abraham in and said, "What have you done to us? How have I wronged you that you have brought such great guilt upon me and my kingdom? You have done things to me that should not be done."
And Abimelech asked Abraham, "What was your reason for doing this?"
Abraham replied, "I said to myself, 'There is surely no fear of God in this place, and they will kill me because of my wife.'
Besides, she really is my sister, the daughter of my father though not of my mother; and she became my wife.
And when God had me wander from my father's household, I said to her, 'This is how you can show your love to me: Everywhere we go, say of me, "He is my brother." ' "
Then Abimelech brought sheep and cattle and male and female slaves and gave them to Abraham, and he returned Sarah his wife to him.
And Abimelech said, "My land is before you; live wherever you like."
To Sarah he said, "I am giving your brother a thousand shekels of silver. This is to cover the offense against you before all who are with you; you are completely vindicated."
Then Abraham prayed to God, and God healed Abimelech, his wife and his slave girls so they could have children again,
for the LORD had closed up every womb in Abimelech's household because of Abraham's wife Sarah.
Now the LORD was gracious to Sarah as he had said, and the LORD did for Sarah what he had promised.
Sarah became pregnant and bore a son to Abraham in his old age, at the very time God had promised him.
Abraham gave the name Isaac to the son Sarah bore him.
When his son Isaac was eight days old, Abraham circumcised him, as God commanded him.
Abraham was a hundred years old when his son Isaac was born to him.
Sarah said, "God has brought me laughter, and everyone who hears about this will laugh with me."
And she added, "Who would have said to Abraham that Sarah would nurse children? Yet I have borne him a son in his old age."
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 slave 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 maidservant. Listen to whatever Sarah tells you, because it is through Isaac that your offspring will be reckoned.
I will make the son of the maidservant 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 nearby, about a bowshot away, for she thought, "I cannot watch the boy die." And as she sat there nearby, 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 Abimelech 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 are living as an alien the same kindness I have shown to you."
Abraham said, "I swear it."
Then Abraham complained to Abimelech about a well of water that Abimelech's servants had seized.
But Abimelech 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 Abimelech, and the two men made a treaty.