Joshua 6:22

22 Joshua said to the two men who had spied out the land, “Go into the prostitute’s house and bring her out and all who belong to her, in accordance with your oath to her.”

Read Joshua 6:22 Using Other Translations

But Joshua had said unto the two men that had spied out the country, Go into the harlot's house, and bring out thence the woman, and all that she hath, as ye sware unto her.
But to the two men who had spied out the land, Joshua said, "Go into the prostitute's house and bring out from there the woman and all who belong to her, as you swore to her."
Meanwhile, Joshua said to the two spies, “Keep your promise. Go to the prostitute’s house and bring her out, along with all her family.”

What does Joshua 6:22 mean?

John Gill's Exposition of the Bible
Joshua 6:22

But Joshua had said unto the two men that had spied out the
country
Whom he had sent on that errand, ( Joshua 2:1 ) ; and what follows he had said unto them before the people entered into the city, and perhaps before the walls of it fell; and indeed from ( Joshua 6:16 Joshua 6:17 ) , it appears to have been said at the time he gave the people orders to shout:

go into the harlot's house:
he does not mention her name but they full well knew who he meant:

and bring out thence the woman, and all that she hath;
not so much her substance, as her father's household, she had got together there, that they might be saved, as had been promised her:

as ye sware unto her;
so that this order was partly on account of her kindness to them, ( Joshua 6:17 ) ; and partly on account of the oath which they had taken, and which Joshua would have inviolably kept.

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