17 And the city shall be accursed, it and all that is in it, to Jehovah; only Rahab the harlot shall live, she and all that are with her in the house, because she hid the messengers that we sent. 18 But in any wise keep from the accursed thing, lest ye make [yourselves] accursed in taking of the accursed thing, and make the camp of Israel a curse, and trouble it. 19 And all the silver, and gold, and vessels of copper and iron, shall be holy to Jehovah; they shall come into the treasury of Jehovah. 20 And the people shouted, and they blew with the trumpets. And it came to pass when the people heard the sound of the trumpets, and the people shouted with a great shout, that the wall fell down flat; and the people went up into the city, each one straight before him, and they took the city. 21 And they utterly destroyed all that was in the city; both man and woman, young and old, and ox, and sheep, and ass, with the edge of the sword. 22 And Joshua said to the two men that had spied out the country, Go into the harlot's house and bring out thence the woman, and all that she has, as ye swore unto her. 23 And the young men, the spies, went in and brought out Rahab, and her father, and her mother, and her brethren, and all that she had: all her kindred did they bring out, and they left them outside the camp of Israel. 24 And they burned the city with fire, and all that was therein; only the silver, and the gold, and the vessels of copper and of iron, they put into the treasury of the house of Jehovah. 25 And Joshua saved alive Rahab the harlot, and her father's household, and all that she had, and she dwelt in the midst of Israel to this day; because she hid the messengers whom Joshua had sent to spy out Jericho. 26 And Joshua swore at that time, saying, Cursed be the man before Jehovah who shall rise up and build this city Jericho! In his first-born shall he lay its foundation, and in his youngest son shall he set up its gates. 27 And Jehovah was with Joshua; and his fame was in all 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.