Joshua cast lots for them at Shiloh in the presence of the Lord where he distributed the land to the Israelites according to their divisions.