New King James Version (NKJV)
Joshua 6
23 And the young men who had been spies went in and brought out Rahab, her father, her mother, her brothers, and all that she had. So they brought out all her relatives and left them outside the camp of Israel.
24 But they burned the city and all that was in it with fire. Only the silver and gold, and the vessels of bronze and iron, they put into the treasury of the house of the Lord.
25 And Joshua spared Rahab the harlot, her father’s household, and all that she had. So she dwells in Israel to this day, because she hid the messengers whom Joshua sent to spy out Jericho.
26 Then Joshua charged them at that time, saying, "Cursed be the man before the Lord who rises up and builds this city Jericho; he shall lay its foundation with his firstborn, and with his youngest he shall set up its gates."
27 So the Lord was with Joshua, and his fame spread throughout all the country.
Joshua 7
1 But the children of Israel committed a trespass regarding the accursed things, for Achan the son of Carmi, the son of Zabdi, the son of Zerah, of the tribe of Judah, took of the accursed things; so the anger of the Lord burned against the children of Israel.
2 Now Joshua sent men from Jericho to Ai, which is beside Beth Aven, on the east side of Bethel, and spoke to them, saying, "Go up and spy out the country." So the men went up and spied out Ai.
3 And they returned to Joshua and said to him, "Do not let all the people go up, but let about two or three thousand men go up and attack Ai. Do not weary all the people there, for the people of Ai are few."
4 So about three thousand men went up there from the people, but they fled before the men of Ai.
5 And the men of Ai struck down about thirty-six men, for they chased them from before the gate as far as Shebarim, and struck them down on the descent; therefore the hearts of the people melted and became like water.
6 Then Joshua tore his clothes, and fell to the earth on his face before the ark of the Lord until evening, he and the elders of Israel; and they put dust on their heads.