Endued with the holy spirit, Joshua divined that the land was to be assigned to the tribes and families of Israel by lot, and he realized that nothing ought to be done to bring this method of deciding into disrepute. He, therefore, tried to persuade Achan to make a clean breast of his transgression. Meantime, the Judeans, the tribesmen of Achan, rallied about him, and throwing themselves upon the other tribes, they wrought fearful havoc and bloodshed. This determined Achan to confess his sins. The confession cost him his life, but it saved him from losing his share in the world to come.
Achan Confesses and Loses His Share in the World to Come
Legends of the Jews 1:13