וַתֹּ֤אמֶר לָהֶם֙ הָהָ֣רָה לֵּ֔כוּ פֶּֽן־יִפְגְּע֥וּ בָכֶ֖ם הָרֹדְפִ֑ים וְנַחְבֵּתֶ֨ם שָׁ֜מָּה שְׁלֹ֣שֶׁת יָמִ֗ים עַ֚ד שׁ֣וֹב הָרֹֽדְפִ֔ים וְאַחַ֖ר תֵּלְכ֥וּ לְדַרְכְּכֶֽם׃
And she said unto them: ‘Get you to the mountain, lest the pursuers light upon you; and hide yourselves there three days, until the pursuers be returned; and afterward may ye go your way.’
Read halakhic rulings (Jewish law) on Joshua 2:16: and classical halakhic sources.