New King James Version (NKJV)
Joshua 6
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.
7 And Joshua said, "Alas, Lord God, why have You brought this people over the Jordan at all--to deliver us into the hand of the Amorites, to destroy us? Oh, that we had been content, and dwelt on the other side of the Jordan!
8 O Lord, what shall I say when Israel turns its back before its enemies?