When they left, they went into the hills and stayed there three days, until the pursuers had searched all along the road and returned without finding them.
References for Joshua 2:22
Then the two men started back. They went down out of the hills, forded the river and came to Joshua son of Nun and told him everything that had happened to them.
They said to Joshua, “The LORD has surely given the whole land into our hands; all the people are melting in fear because of us.”
References for Joshua 2:24