When the Israelites had finished distributing the various territories of the country, they gave an inheritance to Joshua the son of Nun within their territory.