Rabbi Shmuel bar Nachman said two lines about this. "However, there shall be no needy among you" (Deuteronomy 15:4), but when it comes to another matter, "For the needy shall not cease from your midst" is not written here, but only "from the midst of the land" (Deuteronomy 15:11). Rabbi Shmuel bar Nachman said another line about it: "These shall stand to bless the people" (Deuteronomy 27:12), but when it comes to another matter, "these shall stand to curse the people" is not written here, but only, "And these shall stand for the curse," and moreover, when retribution comes to the world the righteous suppress it, as it is said, "And these shall stand over the curse."
How Scripture Steers Poverty and Curse Away From Israel
Yalkut Shimoni on Torah 434:1
רַבִּי שְׁמוּאֵל בַּר נַחְמָן אָמַר בָּהּ תַּרְתִּין שִׁיטִין (דברים טו, ד) "אֶפֶס כִּי לֹא יִהְיֶה בְּךָ אֶבְיוֹן", כְּשֶׁהוּא בָּא לְדָבָר אַחֵר (שם טו, יא) 'כִּי לֹא יֶחְדַּל אֶבְיוֹן' מִקִּרְבְּכֶם אֵין כְּתִיב כָּאן, אֶלָּא "מִקֶּרֶב הָאָרֶץ" רַבִּי שְׁמוּאֵל בַּר נַחְמָן אָמַר בָּהּ שִׁיטָה אוֹחַרֵי (שם כז, יב) "אֵלֶּה יַעַמְדוּ לְבָרֵךְ אֶת הָעָם", וּכְשֶׁהוּא בָּא לְדָבָר אַחֵר אֵלֶּה יַעַמְדוּ לְקַלֵּל אֶת הָעָם אֵין כְּתִיב כָּאן, אֶלָּא "וְאֵלֶּה יַעַמְדוּ עַל הַקְּלָלָה", וְלֹא עוֹד אֶלָּא כְּשֶׁפֻּרְעָנוּת בָּאָה לָעוֹלָם צַדִּיקִים כּוֹבְשִׁים אוֹתָהּ, שֶׁנֶּאֱמַר "וְאֵלֶּה יַעַמְדוּ עַל הַקְּלָלָה".