Rabbi Yose ben Rabbi Chanina said: Moses decreed four decrees upon Israel, and four prophets came and annulled them. Moses said, And Israel dwelt in safety alone, the fountain of Jacob (Deuteronomy 33:28). Amos came and annulled it, as it is said, O Lord GOD, how shall Jacob stand, for he is small? (Amos 7:2), and it is written, The LORD repented concerning this (Amos 7:3). Moses said, And among those nations you shall find no ease (Deuteronomy 28:65). Jeremiah came and annulled it, as it is said, going to give him rest, even Israel (Jeremiah 31:2). Moses said, visiting the iniquity of the fathers upon the sons (Exodus 20:5). Ezekiel came and annulled it, as it is said, The soul that sins, it shall die (Ezekiel 18:4). Moses said, And you shall perish among the nations (Leviticus 26:38). Isaiah came and annulled it, as it is said, And it shall come to pass on that day, that a great horn shall be blown (Isaiah 27:13).
Four Decrees of Moses Annulled by Four Prophets
Yalkut Shimoni on Torah 291:1
אָמַר רַבִּי יוֹסֵי בֶן רַבִּי חֲנִינָא, אַרְבַּע גְּזֵרוֹת גָּזַר מֹשֶׁה עַל יִשְׂרָאֵל וּבָאוּ אַרְבָּעָה נְבִיאִים וּבִטְּלוּם. מֹשֶׁה אָמַר (דברים לג, כח) "וַיִּשְׁכֹּן יִשְׂרָאֵל בֶּטַח בָּדָד עֵין יַעֲקֹב", בָּא עָמוֹס וּבִטְּלָהּ, שֶׁנֶּאֱמַר "ה' אֱלֹהִים מִי יָקוּם יַעֲקֹב כִּי קָטֹן הוּא" וּכְתִיב (שם ו) "נִחַם ה' עַל זֹאת". מֹשֶׁה אָמַר (דברים כח, סה) "וּבַגּוֹיִם הָהֵם לֹא תַרְגִּיעַ", בָּא יִרְמִיָּה וּבִטְּלָהּ, שֶׁנֶּאֱמַר (ירמיה לא, א) "הָלֹךְ לְהַרְגִּיעוֹ יִשְׂרָאֵל". מֹשֶׁה אָמַר פֹּקֵד עֲוֹן אָבֹת עַל בָּנִים, בָּא יְחֶזְקֵאל וּבִטְּלָהּ שֶׁנֶּאֱמַר "הַנֶּפֶשׁ הַחֹטֵאת הִיא תָמוּת". מֹשֶׁה אָמַר (ויקרא כו, לח) "וַאֲבַדְתֶּם בַּגּוֹיִם" בָּא יְשַׁעְיָה וּבִטְּלָהּ, שֶׁנֶּאֱמַר "וְהָיָה בַּיּוֹם הַהוּא יִתָּקַע בְּשׁוֹפָר גָּדוֹל" וְגוֹ'.