"And also they have transgressed My covenant" (Joshua 7:11). Rabbi Yehudah said in the name of Rabbi Yehudah bar Misparta: This teaches that Achan transgressed the five books of the Torah, for it says five times "also." And Rabbi Ila said in the name of Rabbi Yehudah bar Misparta: Achan drew his foreskin forward [to undo his circumcision]. It is written here "and also they have transgressed My covenant," and it is written there, "he has broken My covenant" (Genesis 17:14). This is obvious; what might you have said? That he was brazen regarding the commandment but not brazen regarding his own body. It teaches us otherwise. "And because he has done a disgraceful thing in Israel" (Joshua 7:15). Rabbi Abba bar Kahana said: He had relations with a betrothed maiden. It is written here "because he has done a disgraceful thing in Israel," and it is written there, "for she has done a disgraceful thing in Israel" (Deuteronomy 22:21). This is obvious; what might you have said? That he would not be so brazen as all that. It teaches us otherwise. Ravina said: His sentence was like that of a betrothed maiden, by stoning.
Achan Who Transgressed the Five Books of the Torah
Yalkut Shimoni on Nach 18:2
וגם עברו את בריתי (יהושע ז, יא). אמר ר' יהודה בשם רבי יהודה בר מספרתא מלמד שעבר עכן על חמשה חומשי תורה שנאמר חמשה גם ואמר רבי אילעא בשם רבי יהודה בר מספרתא עכן מושך בערלתו הוה, כתיב הכא וגם עברו את בריתי וכתיב התם את בריתי הפר. פשיטא מהו דתימא במצוה פקר בגופיה לא פקר קמ"ל. וכי עשה נבלה בישראל אמר ר' אבא בר כהנא בעל נערה המאורסה כתיב הכא כי עשה נבלה בישראל וכתיב התם כי נבלה עשה בישראל. פשיטא מהו דתימא כולי האי לא פקר קמ"ל. רבינא אמר דיניה כנערה מאורסה בסקילה: