And Joshua said to the two men who had spied out the land, "Go into the harlot's house, and bring out from it the woman, and all who belong to her, as you swore to her."
So the young men who had been spies went in, and brought out Rahab, and her father and mother and brothers and all who belonged to her; and they brought all her kindred, and set them outside the camp of Israel.
And they burned the city with fire, and all within it; only the silver and gold, and the vessels of bronze and of iron, they put into the treasury of the house of the LORD.
But Rahab the harlot, and her father's household, and all who belonged to her, Joshua saved alive; and she dwelt in Israel to this day, because she hid the messengers whom Joshua sent to spy out Jericho.
Joshua laid an oath upon them at that time, saying, "Cursed before the LORD be the man that rises up and rebuilds this city, Jericho. At the cost of his first-born shall he lay its foundation, and at the cost of his youngest son shall he set up its gates."
So the LORD was with Joshua; and his fame was in all the land.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (Revised Standard Version - Holy Bible)