Joshua 7-9 (NIV)
Achan’s Sin 7 But the Israelites were unfaithful in regard to the devoted things[a];Achan son of Karmi, the son of Zimri,the son of Zerah, of the tribe of Judah, took some of them. So the Lord’s anger burned against Israel.
2 Now Joshua sent men from Jericho to Ai, which is near Beth Aven to the east of Bethel, and told them, “Go up and spy out the region.” So the men went up and spied out Ai.
3 When they returned to Joshua, they said, “Not all the army will have to go up against Ai. Send two or three thousand men to take it and do not weary the whole army, for only a few people live there.” 4 So about three thousand went up; but they were routed by the men of Ai, 5 who killed about thirty-six of them. They chased the Israelites from the city gate as far as the stone quarries and struck them down on the slopes. At this the hearts of the people melted in fear and became like water.