Isaac built an altar there and called on the name of the LORD. There he pitched his tent, and there his servants dug a well.
Meanwhile, Abimelek had come to him from Gerar, with Ahuzzath his personal adviser and Phicol the commander of his forces.
Isaac asked them, “Why have you come to me, since you were hostile to me and sent me away?”
They answered, “We saw clearly that the LORD was with you; so we said, ‘There ought to be a sworn agreement between us’—between us and you. Let us make a treaty with you
that you will do us no harm, just as we did not harm you but always treated you well and sent you away peacefully. And now you are blessed by the LORD.”
Isaac then made a feast for them, and they ate and drank.
Early the next morning the men swore an oath to each other. Then Isaac sent them on their way, and they went away peacefully.
That day Isaac’s servants came and told him about the well they had dug. They said, “We’ve found water!”
He called it Shibah, and to this day the name of the town has been Beersheba.
When Esau was forty years old, he married Judith daughter of Beeri the Hittite, and also Basemath daughter of Elon the Hittite.
They were a source of grief to Isaac and Rebekah.