Joshua 2:7:

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.

See also:

Objection: Job Was a Godly Man, Yet God Let Him Get Sick
Job Explained