Joshua 10:33-43

33 At that time King Horam of Gezer had come to help Lachish. But Joshua killed him and his troops. There were no survivors.
34 Joshua and all Israel marched from Lachish to Eglon, camped there, and attacked it.
35 They captured it that day and killed everyone in it. He claimed it for the LORD by destroying it the same way he had destroyed Lachish.
36 Then Joshua and all Israel marched from Eglon to Hebron and attacked it.
37 They captured it and its neighboring villages and killed its king and all the people. There were no survivors, the same as at Eglon. He claimed the city and all its people for the LORD by destroying them.
38 Then Joshua and all Israel went back to Debir and attacked it.
39 He captured it and its king and all its neighboring villages and killed everyone. So they claimed them all for the LORD by destroying them. There were no survivors. He did the same thing to Debir and its king that he had done to Hebron and Libnah and their kings.
40 So Joshua captured the whole land--the mountains, the Negev, the foothills, and the slopes. There were no survivors. He claimed every living creature for the LORD by destroying it, as the LORD God of Israel had commanded.
41 So Joshua defeated the people from Kadesh Barnea to Gaza and from all the country of Goshen as far as Gibeon.
42 Joshua captured all these kings and their territories in one campaign because the LORD God of Israel fought for Israel.
43 Then Joshua and all Israel returned to the camp at Gilgal.