Joshua 2:5

5 At dusk, when it was time to close the city gate, they left. I don’t know which way they went. Go after them quickly. You may catch up with them.”

Read Joshua 2:5 Using Other Translations

And it came to pass about the time of shutting of the gate, when it was dark, that the men went out: whither the men went I wot not: pursue after them quickly; for ye shall overtake them.
And when the gate was about to be closed at dark, the men went out. I do not know where the men went. Pursue them quickly, for you will overtake them."
They left the town at dusk, as the gates were about to close. I don’t know where they went. If you hurry, you can probably catch up with them.”

What does Joshua 2:5 mean?

John Gill's Exposition of the Bible
Joshua 2:5

And it came to pass, [about the time] of the shutting of the
gate
Of the city, which was done every night, and at a certain time:

when it was dark;
the sun set, and night come on:

that the men went out;
out of her house, and out of the city too, as she said, though it was a downright lie, as well as what follows:

whither the men went I wot not;
though she knew they were not gone, but were now in her house; she might not scruple telling a lie, being brought up a Heathen, and being done with a design to save the lives of persons that belonged to a people she was persuaded were the people of God, and to whom he had given the land; though her lies are not to be justified; evil is not to be done that good may come; nor are men to tell lies one to another upon any account; but these sins, with others, the Lord forgave her:

pursue after them quickly, and ye shall overtake them;
this she encouraged them to do, to get rid of them the sooner, and to remove all suspicion of her having any respect for them, and of being concerned in concealing them.

California - Do Not Sell My Personal Information  California - CCPA Notice