26 Then Abimelech came to him from Gerar with Ahuzzath, one of his friends, and Phichol the commander of his army. 27 And Isaac said to them, "Why have you come to me, since you hate me and have sent me away from you?" 28 But they said, "We have certainly seen that the Lord is with you. So we said, 'Let there now be an oath between us, between you and us; and let us make a covenant with you, 29 that you will do us no harm, since we have not touched you, and since we have done nothing to you but good and have sent you away in peace. You are now the blessed of the Lord.' " 30 So he made them a feast, and they ate and drank. 31 Then they arose early in the morning and swore an oath with one another; and Isaac sent them away, and they departed from him in peace. 32 It came to pass the same day that Isaac's servants came and told him about the well which they had dug, and said to him, "We have found water." 33 So he called it Shebah. Therefore the name of the city is Beersheba to this day.

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.