וַיִּשְׁלַח֩ יְהוֹשֻׁ֨עַ אֲנָשִׁ֜ים מִֽירִיח֗וֹ הָעַ֞י אֲשֶׁ֨ר עִם־בֵּ֥ית אָ֙וֶן֙ מִקֶּ֣דֶם לְבֵֽית־אֵ֔ל וַיֹּ֤אמֶר אֲלֵיהֶם֙ לֵאמֹ֔ר עֲל֖וּ וְרַגְּל֣וּ אֶת־הָאָ֑רֶץ וַֽיַּעֲלוּ֙ הָאֲנָשִׁ֔ים וַֽיְרַגְּל֖וּ אֶת־הָעָֽי׃
Иисус же послал людей из Иерихона в Гай, что около Беф-Авена, на восточной стороне Беф-эля, и сказал им, говоря: 'Иди и разведывай землю.' И люди подошли и высмотрели Ай.
Rashi
Because of the calves of Beth-aven etc. Because of the retribution destined to befall the calves in Bethel, called Beth-aven in the Book of Joshua (7:2).
Rashi
for Gilgal shall be exiled—According to its name is its curse. And, similarly, there is a city near Bethel named Beth-aven in the Book of Joshua (7:2).