So Joshua captured the whole land, just as Yahweh said to Moses. Joshua gave it as an inheritance to Israel, assigned to each of their tribes. Then the land had rest from the wars.