Joshua drew lots for them in Shiloh before the LORD and divided the land among the Israelites according to their allotted portions. 