In those days Amraphel king of Shinar, Arioch king of Ellasar, Chedorlaomer king of Elam, and Tidal king of Goiim
waged war against Bera king of Sodom, Birsha king of Gomorrah, Shinab king of Admah, and Shemeber king of Zeboiim, as well as the king of Bela (that is, Zoar).
All of these came as allies to the Valley of Siddim (that is, the Dead Sea).
They were subject to Chedorlaomer for 12 years, but in the thirteenth year they rebelled.
In the fourteenth year Chedorlaomer and the kings who were with him came and defeated the Rephaim in Ashteroth-karnaim, the Zuzim in Ham, the Emim in Shaveh-kiriathaim,
and the Horites in the mountains of Seir, as far as El-paran by the wilderness.
Then they came back to invade En-mishpat (that is, Kadesh), and they defeated all the territory of the Amalekites, as well as the Amorites who lived 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) went out and lined up for battle in the Valley of Siddim
against Chedorlaomer 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 contained many asphalt pits, and [as] the kings of Sodom and Gomorrah fled, [some] fell into them, but the rest fled to the mountains.
The [four kings] took all the goods of Sodom and Gomorrah and all their food and went on.
They also took Abram's nephew Lot and his possessions, for he was living in Sodom, and they went on.
One of the survivors came and told Abram the Hebrew, who was at the oaks belonging to Mamre the Amorite, the brother of Eshcol and the brother of Aner. They were bound by a treaty with Abram.
When Abram heard that his relative had been taken prisoner, he assembled his 318 trained men, born in his household, and they went in pursuit as far as Dan.
And he and his servants deployed against them by night, attacked them, and pursued them as far as Hobah to the north of Damascus.
He brought back all the goods and also his relative Lot and his goods, as well as the women and the [other] people.
After Abram returned from defeating Chedorlaomer and the kings who were with him, the king of Sodom went 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 a priest to God Most High.
He blessed him and said: Abram is blessed by God Most High, Creator of heaven and earth,
and give praise to God Most High who has handed over your enemies to you. And Abram gave him a tenth of everything.
Then the king of Sodom said to Abram, "Give me the people, but take the possessions for yourself."
But Abram said to the king of Sodom, "I have raised my hand in an oath to the Lord, God Most High, Creator of heaven and earth,
that I will not take a thread or sandal strap or anything that belongs to you, so you can never say, 'I made Abram rich.'
I will take nothing except what the servants have eaten. But as for the share of the men who came with me-Aner, Eshcol, and Mamre-they can take their share."