Joshua 18:5

5 and they have divided it into seven portions -- Judah doth stay by its border on the south, and the house of Joseph do stay by their border on the north --

Joshua 18:5 Meaning and Commentary

Joshua 18:5

And they shall divide it into seven parts
According to the number of the seven tribes not yet settled; and this they were to describe and divide was all the land subdued, or not subdued, only the following excepted:

Judah shall abide in their coast on the south;
on the south of the land of Canaan, where their lot fell, so that needed not to be measured and described; and this tribe was to retain what they were possessed of, unless it should appear they had too much, and others wanted, and they willing to part with some of it to their brethren, as they afterwards did to the tribes of Simeon and Dan:

and the house of Joseph shall abide in their coast on the north;
on the north of the tribe of Judah; not of the land of Canaan, for some other tribes lay more northerly.

Joshua 18:5 In-Context

3 and Joshua saith unto the sons of Israel, `Till when are ye remiss to go in to possess the land which He hath given to you, Jehovah, God of your fathers?
4 Give for you three men for a tribe, and I send them, and they rise and go up and down through the land, and describe it according to their inheritance, and come in unto me,
5 and they have divided it into seven portions -- Judah doth stay by its border on the south, and the house of Joseph do stay by their border on the north --
6 and ye describe the land [in] seven portions, and have brought [it] in unto me hither, and I have cast for you a lot here before Jehovah our God;
7 for there is no portion to the Levites in your midst, for the priesthood of Jehovah [is] their inheritance, and Gad, and Reuben, and the half of the tribe of Manasseh received their inheritance beyond the Jordan eastward, which Moses servant of Jehovah gave to them.'
Young's Literal Translation is in the public domain.