Joshua went and rent his garments, and fell upon his face to the ground before the Ark of the Covenant of God, and he sought (to effect) repentance, and the Holy One, blessed be He, was appeased by him, and He said to him: Joshua! Israel has trespassed the sin of trespass in the matter of the devoted things, as it is said, "Israel hath sinned" (Josh. 7:11). Joshua gazed at the twelve || stones which were upon the High Priest, which correspond to the twelve tribes.
Every tribe that had done some transgression, the light (of its stone) became dim, and he saw the stone of the tribe of Judah, the light of which became dim. And he knew that the tribe of Judah had transgressed in the matter of the devoted thing. He cast lots, and Achan was taken, as it is said, "And he brought near his household man by man; and Achan, the son of Carmi, was taken" (Josh. 7:18). Joshua took Achan, the son of Zerach, with the silver and the mantle and the tongue of gold, and his sons and his daughters, and all that he had, and he brought them up into the valley of Achor.
And it is written, "The fathers shall not be put to death for the children, neither shall the children be put to death for the fathers" (Deut. 24:16). But because they were cognizant of the matter, and did not report it, he stoned them and burnt them. If there was a burning, why (was there) a stoning, and if a stoning, why a burning? But the stoning was because they knew of the matter and did not report it; burning (was inflicted) because thirty-six righteous men died through him, as it is said, "And the men of Ai smote of them about thirty and six men" (Josh. 7:5).