Yirmeyahu / Jeremiah 46:28
אַתָּה אַל־תִּירָא עַבְדִּי יַעֲקֹב נְאֻם־יְהוָה כִּי אִתְּךָ אָנִי כִּי אֶעֱשֶׂה כָלָה בְּכָל־הַגּוֹיִם אֲשֶׁר הִדַּחְתִּיךָ שָׁמָּה וְאֹתְךָ לֹא־אֶעֱשֶׂה כָלָה וְיִסַּרְתִּיךָ לַמִּשְׁפָּט וְנַקֵּה לֹא אֲנַקֶּךָּ׃
You, fear not, O Yaakov My servant, says the Eternal, for I am with you. For I will make a full end of all the nations to which I have driven you, but of you I will not make a full end. I will chasten you in just measure, and I will by no means leave you unpunished."
Pshat פְּשָׁט
Punishment without an end
Rashi: "in just measure" means by judgement, little by little, sparingly. And "I will by no means leave you unpunished (וְנַקֵּה)" Rashi reads as "I will not wipe you out entirely", and so Targum Jonathan translates. Metzudat David: even if I make an end of the nations, of you I will not, though you will be in their land. I will chasten you as is fitting, so that you hear correction, but I will not wipe you out of the world.
How Rashi and Metzudat David explain it
Remez רֶמֶז
An echo of the thirteen attributes
Ahavat Yehonatan: "I will by no means leave you unpunished" explains why the exile is so long. At the redemption Israel will live in peace, and that is impossible until every sin is cleansed. The prophet repeats the Torah's words on the attributes of the Eternal: "and He will by no means clear the guilty." So we are in exile, to be cleansed of all sins.
How Ahavat Yehonatan explain it
Drash דְּרָשׁ
A father punishes for his son's sake
Arvei Nachal: "the Eternal's portion is His people," and this is seen in the difference of punishments. The punishment of Israel is like a father punishing his son so that he goes on a good path: a father never pushes his son toward the bad in order to punish him. So the punishments of Israel are truly good, for all follows the purpose. But the punishment of the idolaters is to the end, for they are not the Eternal's portion.
How Arvei Nachal explain it
Sod סוֹד
Help inside the trouble
Arvei Nachal: the nations hold on while there are holy sparks in them, and vanish when the sparks go out. But the trouble of Israel lasts only while a spark of help is still hidden inside it. Israel were given the knowledge to find the help inside the trouble and draw it out. So "I will chasten you in just measure": the purpose of the trouble is the help within it, and Israel will have no end.
How Arvei Nachal explain it