17 The city and everything in it is under a holy curse and offered up to God. "Except for Rahab the harlot - she is to live, she and everyone in her house with her, because she hid the agents we sent. 18 "As for you, watch yourselves in the city under holy curse. Be careful that you don't covet anything in it and take something that's cursed, endangering the camp of Israel with the curse and making trouble for everyone. 19 All silver and gold, all vessels of bronze and iron are holy to God. Put them in God's treasury." 20 The priests blew the trumpets. When the people heard the blast of the trumpets, they gave a thunderclap shout. The wall fell at once. The people rushed straight into the city and took it. 21 They put everything in the city under the holy curse, killing man and woman, young and old, ox and sheep and donkey. 22 Joshua ordered the two men who had spied out the land, "Enter the house of the harlot and rescue the woman and everyone connected with her, just as you promised her." 23 So the young spies went in and brought out Rahab, her father, mother, and brothers - everyone connected with her. They got the whole family out and gave them a place outside the camp of Israel. 24 But they burned down the city and everything in it, except for the gold and silver and the bronze and iron vessels - all that they put in the treasury of God's house. 25 But Joshua let Rahab the harlot live - Rahab and her father's household and everyone connected to her. She is still alive and well in Israel because she hid the agents whom Joshua sent to spy out Jericho. 26 Joshua swore a solemn oath at that time: Cursed before God is the man who sets out to rebuild this city Jericho. He'll pay for the foundation with his firstborn son, he'll pay for the gates with his youngest son. 27 God was with Joshua. He became famous all over the land.

Matthew Henry's Commentary on Joshua 6:17-27

Commentary on Joshua 6:17-27

(Read Joshua 6:17-27)

Jericho was to be a solemn and awful sacrifice to the justice of God, upon those who had filled up the measure of their sins. So He appoints, from whom, as creatures, they received their lives, and to whom, as sinners, they had forfeited them. Rahab perished not with them that believed not, Acts 14:31. She, and they with her, were plucked as brands from the burning. With Rahab, or with the men of Jericho; our portion must be assigned, as we posses or disregard the sign of salvation; even faith in Christ, which worketh by love. Let us remember what depends upon our choice, and let us choose accordingly. God shows the weight of a Divine curse; where it rests there is no getting from under it; for it brings ruin without remedy.