One year later Kedorlaomer and his allies arrived and defeated the Rephaites at Ashteroth-karnaim, the Zuzites at Ham, the Emites at Shaveh-kiriathaim,
Then they turned back and came to En-mishpat (now called Kadesh) and conquered all the territory of the Amalekites, and also the Amorites living in Hazazon-tamar.
As it happened, the valley of the Dead Sea was filled with tar pits. And as the army of the kings of Sodom and Gomorrah fled, some fell into the tar pits, while the rest escaped into the mountains.
But one of Lot's men escaped and reported everything to Abram the Hebrew, who was living near the oak grove belonging to Mamre the Amorite. Mamre and his relatives, Eshcol and Aner, were Abram's allies.
When Abram heard that his nephew Lot had been captured, he mobilized the 318 trained men who had been born into his household. Then he pursued Kedorlaomer's army until he caught up with them at Dan.
After Abram returned from his victory over Kedorlaomer and all his allies, the king of Sodom went out to meet him in the valley of Shaveh (that is, the King's Valley).
I will accept only what my young warriors have already eaten, and I request that you give a fair share of the goods to my allies-- Aner, Eshcol, and Mamre."