"And I saw among the spoil" (Joshua 7:21). I saw what is written in the Torah, "And you shall eat the spoil of your enemies" (Deuteronomy 20:14). Immediately, "And Joshua sent messengers, and they ran to the tent" (Joshua 7:22), so that the tribe of Judah would not steal them and add to the quarrel.
I Saw Among the Spoil and the Runners to Achan's Tent
Yalkut Shimoni on Nach 18:6
וארא בשלל (יהושע ז, כא). ראיתי מה שכתוב בתורה ואכלת את שלל אויביך, מיד וישלח יהושע מלאכים וירוצו האהלה כדי שלא יגנבו אותם שבט יהודה ויוסיפו מחלוקת: