Joshua then drew lots for them at Shilo before the Lord, where he divided the land for the Israelites according to their divisions.