26 One day King Abimelech came from Gerar with his adviser, Ahuzzath, and also Phicol, his army commander. 27 "Why have you come here?" Isaac asked. "You obviously hate me, since you kicked me off your land." 28 They replied, "We can plainly see that the Lord is with you. So we want to enter into a sworn treaty with you. Let's make a covenant. 29 Swear that you will not harm us, just as we have never troubled you. We have always treated you well, and we sent you away from us in peace. And now look how the Lord has blessed you!" 30 So Isaac prepared a covenant feast to celebrate the treaty, and they ate and drank together. 31 Early the next morning, they each took a solemn oath not to interfere with each other. Then Isaac sent them home again, and they left him in peace. 32 That very day Isaac's servants came and told him about a new well they had dug. "We've found water!" they exclaimed. 33 So Isaac named the well Shibah (which means "oath"). And to this day the town that grew up there is called Beersheba (which means "well of the oath").

Matthew Henry's Commentary on Genesis 26:26-33

Commentary on Genesis 26:26-33

(Read Genesis 26:26-33)

When a man's ways please the Lord, he maketh even his enemies to be at peace with him, Proverbs 16:7. Kings' hearts are in his hands, and when he pleases, he can turn them to favour his people. It is not wrong to stand upon our guard in dealing with those who have acted unfairly. But Isaac did not insist on the unkindnesses they had done him; he freely entered into friendship with them. Religion teaches us to be neighbourly, and, as much as in us lies, to live peaceable with all men. Providence smiled upon what Isaac did; God blessed his labours.