כִּ֣י ׀ אַרְבָּעִ֣ים שָׁנָ֗ה הָלְכ֣וּ בְנֵֽי־יִשְׂרָאֵל֮ בַּמִּדְבָּר֒ עַד־תֹּ֨ם כָּל־הַגּ֜וֹי אַנְשֵׁ֤י הַמִּלְחָמָה֙ הַיֹּצְאִ֣ים מִמִּצְרַ֔יִם אֲשֶׁ֥ר לֹֽא־שָׁמְע֖וּ בְּק֣וֹל יְהוָ֑ה אֲשֶׁ֨ר נִשְׁבַּ֤ע יְהוָה֙ לָהֶ֔ם לְבִלְתִּ֞י הַרְאוֹתָ֣ם אֶת־הָאָ֗רֶץ אֲשֶׁר֩ נִשְׁבַּ֨ע יְהוָ֤ה לַֽאֲבוֹתָם֙ לָ֣תֶת לָ֔נוּ אֶ֛רֶץ זָבַ֥ת חָלָ֖ב וּדְבָֽשׁ׃
Pois quarenta anos andaram os filhos de Israel pelo deserto, até se acabar toda a nação, isto é, todos os homens de guerra que saíram do Egito, e isso porque não obedeceram à voz do SENHOR; aos quais o SENHOR tinha jurado que não lhes havia de deixar ver a terra que, com juramento, prometera a seus pais nos daria, terra que mana leite e mel.
Zohar
Rav Huna said, Come and behold, "For the children of Yisrael walked forty years in the wilderness because they obeyed not the voice of Hashem" (Joshua 5:6). In this verse, it is the same. Rabbi Yosef said, Everything that was said is the same, but for one thing. At the end of forty years, when the troubles pass away and the wicked are exterminated, the dead, the dwellers of the dust, shall live. Why? Because it is written, "affliction shall not rise up the second time" (Nehemiah 1:9). They had their fill with what they had. After the resurrection of the dead, the world will be settled, as it is written, "on that day Hashem shall be One and His Name One" (Zecharyah 14:9).