Joshua 18:6

Ye shall therefore describe the land into seven parts, and bring the description hither to me, that I may cast lots for you here before the LORD our God.

The command was issued at Shiloh after the tabernacle had been removed to that location. The tribes of Israel were gathered together there, since Shiloh had become the new center of worship. It was from this central assembly that they were to disperse to take up their appointed possessions.