New American Standard Bible (NASB)
Joshua 6
25 However, Rahab the harlot and her father’s household and all she had, Joshua spared; and she has lived in the midst of Israel to this day, for she hid the messengers whom Joshua sent to spy out Jericho.
26 Then Joshua made them take an oath at that time, saying, "Cursed before the Lord is the man who rises up and builds this city Jericho; with the loss of his firstborn he shall lay its foundation, and with the loss of his youngest son he shall set up its gates."
27 So the Lord was with Joshua, and his fame was in all the land.
Joshua 7
1 But the sons of Israel acted unfaithfully in regard to the things under the ban, for Achan, the son of Carmi, the son of Zabdi, the son of Zerah, from the tribe of Judah, took some of the things under the ban, therefore the anger of the Lord burned against the sons of Israel.
2 Now Joshua sent men from Jericho to Ai, which is near Beth-aven, east of Bethel, and said to them, "Go up and spy out the land." So the men went up and spied out Ai.
3 They returned to Joshua and said to him, "Do not let all the people go up; only about two or three thousand men need go up to Ai; do not make all the people toil up there, for they are few."
4 So about three thousand men from the people went up there, but they fled from the men of Ai.
5 The men of Ai struck down about thirty-six of their men, and pursued them from the gate as far as Shebarim and struck them down on the descent, so the hearts of the people melted and became as water.
6 Then Joshua tore his clothes and fell to the earth on his face before the ark of the Lord until the evening, both he and the elders of Israel; and they put dust on their heads.
7 Joshua said, "Alas, O Lord God, why did You ever bring this people over the Jordan, only to deliver us into the hand of the Amorites, to destroy us? If only we had been willing to dwell beyond the Jordan!
8 O Lord, what can I say since Israel has turned their back before their enemies?