Joshua 6:17-27

17 The city shall be devoted, even it and all that is therein, to Yahweh: only Rahab the prostitute shall live, she and all who are with her in the house, because she hid the messengers that we sent.
18 But as for you, only keep yourselves from the devoted thing, lest when you have devoted it, you take of the devoted thing; so would you make the camp of Israel accursed, and trouble it.
19 But all the silver, and gold, and vessels of brass and iron, are holy to Yahweh: they shall come into the treasury of Yahweh.
20 So the people shouted, and [the priests] blew the trumpets; and it happened, when the people heard the sound of the trumpet, that the people shouted with a great shout, and the wall fell down flat, so that the people went up into the city, every man straight before him, and they took the city.
21 They utterly destroyed all that was in the city, both man and woman, both young and old, and ox, and sheep, and donkey, with the edge of the sword.
22 Joshua said to the two men who had spied out the land, Go into the prostitute's house, and bring out there the woman, and all that she has, as you swore to her.
23 The young men the spies went in, and brought out Rahab, and her father, and her mother, and her brothers, and all that she had; all her relatives also they brought out; and they set them outside of the camp of Israel.
24 They burnt the city with fire, and all that was therein; only the silver, and the gold, and the vessels of brass and of iron, they put into the treasury of the house of Yahweh.
25 But Rahab the prostitute, and her father's household, and all that she had, did Joshua save alive; and she lived in the midst of Israel to this day, because she hid the messengers, whom Joshua sent to spy out Jericho.
26 Joshua charged them with an oath at that time, saying, Cursed be the man before Yahweh, that rises up and builds this city Jericho: with the loss of his firstborn shall he lay the foundation of it, and with the loss of his youngest son shall he set up the gates of it.
27 So Yahweh was with Joshua; and his fame was in all the land.
The World English Bible is in the public domain.