This phrase refers to Joshua sending the thirty thousand men who had been selected to ambush Ai to where they would set the ambush.
"where they would hide until it was time to attack"