After Abram returned from defeating Kedorlaomer and the kings who were with him, the king of Sodom went out to meet Abram in the Valley of Shaveh (known as the King’s Valley).
When they had brought them outside, they said, “Run for your lives! Don’t look behind you or stop anywhere in the valley! Escape to the mountains or you will be destroyed!”
Lot went up from Zoar with his two daughters and settled in the mountains because he was afraid to live in Zoar. So he lived in a cave with his two daughters.
The one who runs away from the sound of the terror will fall into the pit; the one who climbs out of the pit, will be trapped by the snare. For the floodgates of the heavens are opened up and the foundations of the earth shake.
Anyone who flees at the sound of terror will fall into a pit. Anyone who climbs out of the pit will be caught in a trap. For the time is coming when I will punish the people of Moab. I, the Lord, affirm it!
When Israel had finished killing all the men of Ai who had chased them toward the desert (they all fell by the sword), all Israel returned to Ai and put the sword to it.