||Abimelekh took sheep, cattle, and male and female slaves, and he gave [them] to Abraham. He [also] returned [Abraham's] wife Sarah to him.
Vayikach Avimelech tson uvakar va'avadim ushfachot vayiten le-Avraham vayashev lo et Sarah ishto.
||Abimelekh said, 'My whole land is before you. Settle wherever you see fit.'
Vayomer Avimelech hineh artsi lefaneycha batov be'eyneycha shev.
According to many opinions, Abraham therefore decided to settle in Beer-sheba, which was the border of the Philistine territory (cf. Ramban on Genesis 21:32; Matnath Kehunah on Bereshith Rabbah 54:2). This is also supported in other ancient sources (Yov'loth 16:11). See Genesis 21:14. Others, however, maintain that Abraham remained in Gerar (Ibn Ezra; Radak).