Genesis 13 – There was fighting between the herdsmen of Abram and Lot, so they decided to separate. Lot chose the whole plain of the Jordan, as it was well watered, and set out toward the east. Abram lived in the land of Canaan, while Lot lived among the cities of the plain and pitched his tents near Sodom.
The men of Sodom were wicked and were sinning against the LORD. The LORD told Abram after he and Lot parted ways that he’d give all the land to Abram (and his offspring forever) — all the land he could see north, south, east and west. So Abram moved his tents and went to live near the great trees of Mamre at Hebron, where he built an altar to the LORD.