The LORD said to Abram after Lot had parted from him, "Lift up your eyes from where you are and look north and south, east and west.
All the land that you see I will give to you and your offspring forever.
I will make your offspring like the dust of the earth, so that if anyone could count the dust, then your offspring could be counted.
Go, walk through the length and breadth of the land, for I am giving it to you."
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.
At this time Amraphel king of Shinar, Arioch king of Ellasar, Kedorlaomer king of Elam and Tidal king of Goiim
went to war against Bera king of Sodom, Birsha king of Gomorrah, Shinab king of Admah, Shemeber king of Zeboiim, and the king of Bela (that is, Zoar).
All these latter kings joined forces in the Valley of Siddim (the Salt Sea).
For twelve years they had been subject to Kedorlaomer, but in the thirteenth year they rebelled.
In the fourteenth year, Kedorlaomer and the kings allied with him went out and defeated the Rephaites in Ashteroth Karnaim, the Zuzites in Ham, the Emites in Shaveh Kiriathaim
and the Horites in the hill country of Seir, as far as El Paran near the desert.
Then they turned back and went to En Mishpat (that is, Kadesh), and they conquered the whole territory of the Amalekites, as well as the Amorites who were living in Hazazon Tamar.
Then the king of Sodom, the king of Gomorrah, the king of Admah, the king of Zeboiim and the king of Bela (that is, Zoar) marched out and drew up their battle lines in the Valley of Siddim
against Kedorlaomer king of Elam, Tidal king of Goiim, Amraphel king of Shinar and Arioch king of Ellasar--four kings against five.
Now the Valley of Siddim was full of tar pits, and when the kings of Sodom and Gomorrah fled, some of the men fell into them and the rest fled to the hills.
The four kings seized all the goods of Sodom and Gomorrah and all their food; then they went away.
They also carried off Abram's nephew Lot and his possessions, since he was living in Sodom.
One who had escaped came and reported this to Abram the Hebrew. Now Abram was living near the great trees of Mamre the Amorite, a brother of Eshcol and Aner, all of whom were allied with Abram.
When Abram heard that his relative had been taken captive, he called out the 318 trained men born in his household and went in pursuit as far as Dan.
During the night Abram divided his men to attack them and he routed them, pursuing them as far as Hobah, north of Damascus.
He recovered all the goods and brought back his relative Lot and his possessions, together with the women and the other people.
After Abram returned from defeating Kedorlaomer and the kings allied with him, the king of Sodom came out to meet him in the Valley of Shaveh (that is, the King's Valley).
Then Melchizedek king of Salem brought out bread and wine. He was priest of God Most High,
and he blessed Abram, saying, "Blessed be Abram by God Most High, Creator of heaven and earth.
And blessed be God Most High, who delivered your enemies into your hand." Then Abram gave him a tenth of everything.
The king of Sodom said to Abram, "Give me the people and keep the goods for yourself."
But Abram said to the king of Sodom, "I have raised my hand to the LORD, God Most High, Creator of heaven and earth, and have taken an oath
that I will accept nothing belonging to you, not even a thread or the thong of a sandal, so that you will never be able to say, 'I made Abram rich.'
I will accept nothing but what my men have eaten and the share that belongs to the men who went with me--to Aner, Eshcol and Mamre. Let them have their share."
After this, the word of the LORD came to Abram in a vision: "Do not be afraid, Abram. I am your shield, your very great reward."
But Abram said, "O Sovereign LORD, what can you give me since I remain childless and the one who will inherit my estate is Eliezer of Damascus?"
And Abram said, "You have given me no children; so a servant in my household will be my heir."
Then the word of the LORD came to him: "This man will not be your heir, but a son coming from your own body will be your heir."
He took him outside and said, "Look up at the heavens and count the stars--if indeed you can count them." Then he said to him, "So shall your offspring be."
Abram believed the LORD, and he credited it to him as righteousness.
He also said to him, "I am the LORD, who brought you out of Ur of the Chaldeans to give you this land to take possession of it."
But Abram said, "O Sovereign LORD, how can I know that I will gain possession of it?"
So the LORD said to him, "Bring me a heifer, a goat and a ram, each three years old, along with a dove and a young pigeon."
Abram brought all these to him, cut them in two and arranged the halves opposite each other; the birds, however, he did not cut in half.
Then birds of prey came down on the carcasses, but Abram drove them away.
As the sun was setting, Abram fell into a deep sleep, and a thick and dreadful darkness came over him.
Then the LORD said to him, "Know for certain that your descendants will be strangers in a country not their own, and they will be enslaved and mistreated four hundred years.