Then Elam the king of Gezer went up to help Lachish; and Joshua smote him and his people with the edge of the sword, until there was not left to him one that was preserved and escaped.