In the fourteenth year Chedorlaomer and his allies came with their armies and defeated the Rephaim in Ashteroth Karnaim, the Zuzim in Ham, the Emim in the plain of Kiriathaim,
Then they turned around and came back to Kadesh (then known as Enmishpat). They conquered all the land of the Amalekites and defeated the Amorites who lived in Hazazon Tamar.
The valley was full of tar pits, and when the kings of Sodom and Gomorrah tried to run away from the battle, they fell into the pits; but the other three kings escaped to the mountains.
But a man escaped and reported all this to Abram, the Hebrew, who was living near the sacred trees belonging to Mamre the Amorite. Mamre and his brothers Eshcol and Aner were Abram's allies.
When Abram heard that his nephew had been captured, he called together all the fighting men in his camp, 318 in all, and pursued the four kings all the way to Dan.
and got back all the loot that had been taken. He also brought back his nephew Lot and his possessions, together with the women and the other prisoners.
When Abram came back from his victory over Chedorlaomer and the other kings, the king of Sodom went out to meet him in Shaveh Valley (also called King's Valley).