Joshua 6:21-27
6:21 They annihilated with the sword everything that breathed in the city, including men and women, young and old, as well as cattle, sheep, and donkeys.
6:22 Joshua told the two men who had spied on the land, “Enter the prostitute’s house and bring out the woman and all who belong to her as you promised her.”
6:23 So the young spies went and brought out Rahab, her father, mother, brothers, and all who belonged to her. They brought out her whole family and took them to a place outside the Israelite camp.
6:24 But they burned the city and all that was in it, except for the silver, gold, and bronze and iron items they put in the treasury of the Lord’s house.
6:25 Yet Joshua spared Rahab the prostitute, her father’s family, and all who belonged to her. She lives in Israel to this very day because she hid the messengers Joshua sent to spy on Jericho.
6:26 At that time Joshua made this solemn declaration: “The man who attempts to rebuild this city of Jericho will stand condemned before the Lord. He will lose his firstborn son when he lays its foundations and his youngest son when he erects its gates!”
6:27 The Lord was with Joshua and he became famous throughout the land.