Joshua 7:1-6 New International Version (NIV)
7 But the Israelites were unfaithful in regard to the devoted things[a]; Achan son of Karmi, the son of Zimri,[b] 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.
6 Then Joshua tore his clothes and fell facedown to the ground before the ark of the Lord, remaining there till evening. The elders of Israel did the same, and sprinkled dust on their heads.
Joshua 7:10-13 New International Version (NIV)
10 The Lord said to Joshua, “Stand up! What are you doing down on your face? 11 Israel has sinned; they have violated my covenant, which I commanded them to keep. They have taken some of the devoted things; they have stolen, they have lied, they have put them with their own possessions. 12 That is why the Israelites cannot stand against their enemies; they turn their backs and run because they have been made liable to destruction. I will not be with you anymore unless you destroy whatever among you is devoted to destruction.
13 “Go, consecrate the people. Tell them, ‘Consecrate yourselves in preparation for tomorrow; for this is what the Lord, the God of Israel, says: There are devoted things among you, Israel. You cannot stand against your enemies until you remove them.
1 Corinthians 10:11-13 New International Version (NIV)
11 These things happened to them as examples and were written down as warnings for us, on whom the culmination of the ages has come. 12 So, if you think you are standing firm, be careful that you don’t fall! 13 No temptation[a] has overtaken you except what is common to mankind. And God is faithful; he will not let you be tempted[b] beyond what you can bear. But when you are tempted,[c] he will also provide a way out so that you can endure it.