Joshua then cast lots for them before the Lord in Shiloh, and divided up the land for the Israelites into their separate shares.