Genesis 21:31

New American Standard Bible (NASB)
Therefore he called that place Beersheba, because there the two of them took an oath.

Read Genesis 21:31 in other translations