And it came to pass, when Joshua and the children of Israel had made an end of smiting them with a very great defeat, till they were all spent, and those that escaped had fled from them and entered into the fortified cities,