And Joshua cast lots for them in Shiloh before the Lord; and there Joshua divided the land unto the sons of Israel according to their portions.