So Joshua said to the Israelites, "How long will you delay going out to take possession of the land that the Lord, the God of your fathers, gave you?
Appoint for yourselves three men from each tribe, and I will send them out. They are to go and survey the land, write a description of it for the purpose of their inheritance, and return to me.
Then they are to divide it into seven portions. Judah is to remain in its territory in the south, and Joseph's family in their territory in the north.
References for Joshua 18:5
When you have written a description of the seven portions of land and brought it to me, I will cast lots for you here in the presence of the Lord our God.
But the Levites among you do not get a portion, because their inheritance is the priesthood of the Lord. Gad, Reuben, and half the tribe of Manasseh have taken their inheritance beyond the Jordan to the east, which Moses the Lord's servant gave them."
As the men prepared to go, Joshua commanded them to write down a description of the land, saying, "Go and survey the land, write a description of it, and return to me. I will then cast lots for you here in Shiloh in the presence of the Lord."
References for Joshua 18:8
So the men left, went through the land, and described it by towns in a document of seven sections. They returned to Joshua at the camp in Shiloh.
Joshua cast lots for them at Shiloh in the presence of the Lord where he distributed the land to the Israelites according to their divisions.
The lot came up for the tribe of Benjamin's descendants by their clans, and their allotted territory lay between Judah's descendants and Joseph's descendants.
References for Joshua 18:11
Their border on the north side began at the Jordan, ascended to the slope of Jericho on the north, through the hill country westward, and ended at the wilderness of Beth-aven.
From there the border went toward Luz, to the southern slope of Luz (that is, Bethel); it then went down by Ataroth-addar, over the hill south of Lower Beth-horon.