7 So the men set out in pursuit of the spies on the road that leads to the fords of the Jordan, and as soon as the pursuers had gone out, the gate was shut.

Read Joshua 2:7 Using Other Translations

And the men pursued after them the way to Jordan unto the fords: and as soon as they which pursued after them were gone out, they shut the gate.
So the men pursued after them on the way to the Jordan as far as the fords. And the gate was shut as soon as the pursuers had gone out.
So the king’s men went looking for the spies along the road leading to the shallow crossings of the Jordan River. And as soon as the king’s men had left, the gate of Jericho was shut.