Now, when King Amraphel of Shinar, King Arioch of Ellasar, King Chedorlaomer of Elam, and King Tidal of Goiim made war on King Bera of Sodom, King Birsha of Gomorrah, King Shinab of Admah, King Shemeber of Zeboiim, and the king of Bela, which is Zoar, all the latter joined forces at the Valley of Siddim, now the Dead Sea. Twelve years they served Chedorlaomer, and in the thirteenth year they rebelled. In the fourteenth year Chedorlaomer and the kings who were with him came and defeated the Rephaim at Ashteroth-karnaim, the Zuzim at Ham, the Emim at Shaveh-kiriathaim, and the Horites in their hill country of Seir as far as El-paran, which is by the wilderness. On their way back they came to En-mishpat, which is Kadesh, and subdued all the territory of the Amalekites, and also the Amorites who dwelt 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, which is Zoar, went forth and engaged them in battle in the Valley of Siddim: King Chedorlaomer of Elam, King Tidal of Goiim, King Amraphel of Shinar, and King Arioch of Ellasarâ€”four kings against those five.
Now the Valley of Siddim was dotted with bitumen pits; and the kings of Sodom and Gomorrah, in their flight, threw themselves into them, while the rest escaped to the hill country. [The invaders] seized all the wealth of Sodom and Gomorrah and all their provisions, and went their way. They also took Lot, the son of Abramâ€™s brother, and his possessions, and departed; for he had settled in Sodom.
A fugitive brought the news to Abram the Hebrew, who was dwelling at the terebinths of Mamre the Amorite, kinsman of Eshkol and Aner, these being Abramâ€™s allies. When Abram heard that his kinsman had been taken captive, he mustered his retainers, born into his household, numbering three hundred and eighteen, and went in pursuit as far as Dan. At night, he and his servants deployed against them and defeated them; and he pursued them as far as Hobah, which is north of Damascus. He brought back all the possessions; he also brought back his kinsman Lot and his possessions, and the women and the rest of the people.
When he returned from defeating Chedorlaomer and the kings with him, the king of Sodom came out to meet him in the Valley of Shaveh, which is the Valley of the King. And King Melchizedek of Salem brought out bread and wine; he was a priest of God Most High. He blessed him, saying,
"Blessed be Abram of God Most High,
Creator of heaven and earth.
And blessed be God Most High,
Who has delivered your foes into your hand."
And [Abram] gave him a tenth of everything.