The Israelites did a disrespectful thing concerning the items reserved for God. Achan was the son of Carmi, grandson of Zabdi, great-grandson of Zerah. He was from the tribe of Judah. He took some of the things reserved for God. So the LORD was furious with the Israelites.
References for Joshua 7:1
Joshua sent men from Jericho to Ai, which is near Beth-aven to the east of Bethel. He said to them, "Go up. Scout out the land." So the men went up and scouted out Ai.
They came back to Joshua and said to him, "There is no need for all of the people to go up. Two or three thousand men could go up and strike Ai. Don't make all of the people bother going there. There are just a few of them."
So about three thousand men from the people went up in that direction. But they fled from the men of Ai.
The men of Ai struck down approximately thirty-six of them. They chased them from outside the gate as far as Shebarim. They struck them down on the slope. Then the hearts of the people melted and turned to water.
Joshua ripped open his clothes. He, along with the elders of Israel, lay flat on their faces before the LORD's chest until evening. They put dust on their heads.
References for Joshua 7:6
Then Joshua said, "Oh no, LORD God! Why did you ever bring this people across the Jordan? Was it to hand us over to the power of the Amorites, to destroy us? If only we had been prepared to live on the other side of the Jordan!
Please forgive me, LORD. What can I say now that Israel has retreated before its enemies?
The Canaanites and the whole population of the land will hear of it. They will surround us and make our name disappear from the earth. What will you do about your great name then?"
The LORD said to Joshua, "Get up! Why do you lie flat on your face like this?
Israel has sinned. They have violated my covenant, which I commanded them to keep. They have taken some of the things reserved for me and put them with their own things. They have stolen and kept it a secret.
The Israelites can't stand up to their enemies. They retreat before their enemies because they themselves have become a doomed thing reserved for me. I will no longer be with you unless you destroy the things reserved for me that are present among you.
Go and make the people holy. Say, ‘Get ready for tomorrow by making yourselves holy. This is what the LORD, the God of Israel, says: 'Israel! Things reserved for me are present among you. You won't be able to stand up to your enemies until you remove from your presence the things reserved for me.''
In the morning, come forward tribe by tribe. Whichever tribe the LORD selects must come forward clan by clan. Whichever clan the LORD selects must come forward family by family. Whichever family the LORD selects will come forward by individual soldiers.
The person selected, who has the things reserved for God, must be put to death by burning. Burn everything that belongs to him too. This is because he has violated the LORD's covenant and has committed an outrage in Israel."
Joshua got up early in the morning. He made Israel come forward tribe by tribe. The tribe of Judah was selected.
References for Joshua 7:16
He made the clans of Judah come forward. He selected the clan of Zerah. He made the clan of Zerah come forward as individual soldiers. Zabdi was selected.
He made each soldier of his family come forward. Achan was selected. He was a son of Carmi, grandson of Zabdi, great-grandson of Zerah, and of the tribe of Judah.
Joshua said to Achan, "My son, give glory to the LORD the God of Israel. Tell me what you have done. Don't hide anything from me."
Achan answered Joshua, "It's true. I've sinned against the LORD, the God of Israel. This is what I have done:
Among the booty I saw a single beautiful robe in the Babylonian style, two hundred shekels of silver, and a single gold bar weighing fifty shekels. I desired them and took them. Now they are hidden in the ground inside my tent, with the silver on the bottom."
Then Joshua sent messengers. They ran to the tent. There it was, hidden in his tent, with the silver on the bottom.
They took the things from inside the tent. They brought them to Joshua and to all the Israelites and emptied them out before the LORD.
Then Joshua seized Achan, Zerah's son, along with the silver, the robe, the gold bar, his sons and daughters, his cattle, donkeys, flocks, tent, and everything that belonged to him. All Israel joined Joshua. They brought them up to Achor Valley.
Joshua said, "You have brought disaster to us! May the LORD bring disaster to you today!" Then all Israel stoned him. They burned them with fire and stoned them with stones.
They raised over him a great pile of stones that is still there today. Then the LORD turned away from his fury. So he named that place Achor Valley. It is still called that today.
References for Joshua 7:26