Then Joshua cast lots for them in Shiloh in the sight of the Lord. There he gave out a share of land to each of the remaining tribes in Israel.