Joshua 11:21-23 New King James Version (NKJV)
21 And at that time Joshua came and cut off the Anakim from the mountains: from Hebron, from Debir, from Anab, from all the mountains of Judah, and from all the mountains of Israel; Joshua utterly destroyed them with their cities. 22 None of the Anakim were left in the land of the children of Israel; they remained only in Gaza, in Gath, and in Ashdod.
23 So Joshua took the whole land, according to all that the Lord had said to Moses; and Joshua gave it as an inheritance to Israel according to their divisions by their tribes. Then the land rested from war.