The Lord had told Moses how to divide the land among the tribes of Israel. The Israelites divided the land the way the Lord had commanded.
At Shiloh in the land of Canaan, the Levite rulers said to them, “The Lord gave Moses a command. He commanded that you give us towns to live in and that you give us fields where our animals can eat.”
The Lord had given this command to Moses and Aaron, so the Israelites did what the Lord commanded.
Joshua threw lots for them in front of the Lord at Shiloh. In this way Joshua divided the land and gave each tribe its part of the land.