Genesis 21:21-31

21 He lived in the wilderness of Paran. His mother took a wife for him out of the land of Mitzrayim.
22 It happened at that time, that Avimelekh and Pikhol the captain of his host spoke to Avraham, saying, "God is with you in all that you do.
23 Now therefore swear to me here by God that you will not deal falsely with me, nor with my son, nor with my son's son. But according to the kindness that I have done to you, you shall do to me, and to the land in which you have sojourned."
24 Avraham said, "I will swear."
25 Avraham complained to Avimelekh because of a water well, which Avimelekh's servants had violently taken away.
26 Avimelekh said, I don't know who has done this thing. Neither did you tell me, neither did I hear of it, until today."
27 Avraham took sheep and oxen, and gave them to Avimelekh. Those two made a covenant.
28 Avraham set seven ewe lambs of the flock by themselves.
29 Avimelekh said to Avraham, "What do these seven ewe lambs which you have set by themselves mean?"
30 He said, "You shall take these seven ewe lambs from my hand, that it may be a witness to me, that I have dug this well."
31 Therefore he called that place Be'er-Sheva, because they both swore there.