Joshua 6:17 And the city shall be accursed, even it, and all that are therein, to the Lord: 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 And ye, in any wise keep yourselves from the accursed thing, lest ye make yourselves accursed, when ye take of the accursed thing, and make the camp of Israel a curse, and trouble it.
[Patriarchs & Prophets pp 491>492] The Israelites had not gained the victory by their own power; the conquest had been wholly the Lord's; and as the first fruits of the land, the city, with all that it contained, was to be devoted as a sacrifice to God. It was to be impressed upon Israel that in the conquest of Canaan they were not to fight for themselves, but simply as instruments to execute the will of God; not to seek for riches or self-exaltation, but the glory of Jehovah their King. Before the capture the command had been given, “The city shall be accursed, even it, and all that are therein.”
“Keep yourselves from the accursed thing, lest ye make yourselves accursed ... and make the camp of Israel a curse, and trouble it.” All the inhabitants of the city, with every living thing that it contained, “both man and woman, young and old, and ox, and sheep, and ass,” were put to the sword. Only faithful Rahab, with her household, was spared, in fulfillment of the promise of the spies. The city itself was burned; its palaces and temples, its magnificent dwellings with all their luxurious appointments, the rich draperies and the costly garments, were given to the flames.
That which could not be destroyed by fire, “the silver, and the gold, and the vessels of brass and of iron,” was to be devoted to the service of the tabernacle. The very site of the city was accursed; Jericho was never to be rebuilt as a stronghold; judgments were threatened upon anyone who should presume to restore the walls that divine power had cast down. The solemn declaration was made in the presence of all Israel, “Cursed be the man before the Lord, that riseth up and buildeth this city Jericho: he shall lay the foundation thereof in his first-born, and in his youngest son shall he set up the gates of it.”
Joshua 6:24 And 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 the Lord.
May God add His blessing to the study of His word. "Good night" and God bless!