Joshua 2:7

New American Standard Bible (NASB)
So the men pursued them on the road to the Jordan to the fords; and as soon as those who were pursuing them had gone out, they shut the gate.

Read Joshua 2:7 in other translations