After his return from the defeat of Kedorlaomer and the kings who had joined with him, the king of Sodom went out to meet him in the Valley of Shaveh (that is, the King’s Valley).
When they had brought them out, one of them said to them, “Escape for your lives! Do not look behind you or stay anywhere in the plain. Escape to the mountain, lest you be destroyed.”
Then Lot left Zoar, and lived in the mountains, along with his two daughters who were with him, for he was afraid to dwell in Zoar. He and his two daughters lived in a cave.
He who flees from the report of disaster shall fall into the pit, and he who comes up out of the midst of the pit shall be taken in the snare. For the windows from on high are open, and the foundations of the earth shake.
He who flees from the terror shall fall into the pit, and he who gets up out of the pit will be taken in the snare; for I will bring upon it, even upon Moab, the year of their punishment, says the Lord.
When Israel completed killing all the inhabitants of Ai in the open wilderness where they had pursued them, and when all of them had finally fallen by the edge of the sword, all Israel returned to Ai and struck it with the edge of the sword.