In Genesis 21:22-34 Abraham makes a covenant with Abimelech. Though Abraham had disastrously lied about Sarah being his wife to Abimelech, now we see that God is able to turn this to good as Abimelech sees through the incident that God is with Abraham and defends him. It is by this that Abraham is able to dwell in the land peacefully, even though he is unable to acquire it.