17 The city and all that is in it are dedicated to the Lord for destruction. Only Rahab the prostitute may live, she, and all who are with her in her house, for she hid the messengers we sent.
18 As for you, keep yourselves from that which is dedicated for destruction, lest you be destroyed. If you take from that which is dedicated for destruction, you will set the Israelite camp for destruction and bring trouble upon it.
19 All the silver, gold, and bronze and iron articles are set apart for the Lord. They will go into the treasury of the Lord.”
20 So the people shouted, and they blew the trumpets. When the people heard the trumpet sound, they shouted a loud battle cry, and the wall fell down. So the people went up into the city, one man after the other, and they captured it.
21 They destroyed all that was in the city: man and woman, young and old, and oxen, sheep, and donkey with the edge of the sword.
22 Yet to the two men who had spied out the land, Joshua said, “Enter the prostitute’s house, and bring out the woman and everyone who belongs to her, as you swore to her.”
23 So the young men who had been spies entered and brought out Rahab, her father, her mother, her brothers, everyone who belonged to her, and her whole extended family. They brought them out and placed them outside of the camp of Israel.