Yirmeyahu / Jeremiah 46:28 · Drash
אַתָּה אַל־תִּירָא עַבְדִּי יַעֲקֹב נְאֻם־יְהוָה כִּי אִתְּךָ אָנִי כִּי אֶעֱשֶׂה כָלָה בְּכָל־הַגּוֹיִם אֲשֶׁר הִדַּחְתִּיךָ שָׁמָּה וְאֹתְךָ לֹא־אֶעֱשֶׂה כָלָה וְיִסַּרְתִּיךָ לַמִּשְׁפָּט וְנַקֵּה לֹא אֲנַקֶּךָּ׃
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."
Drash דְּרָשׁ
A father punishes for his son's sake
A parent punishes a child, and the child feels unloved. But the parent wants one thing: that the son go on a good path. Arvei Nachal explains in this way the difference between the two "ends" in this verse.
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
Arvei Nachal
And the matter is that "for the Eternal's portion is His people": this has been confirmed to us by experience, when we see the difference between the punishments of Israel and the punishments of the idolaters, as it says: "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 so on (Yirmeyahu / Jeremiah 46:28).
This means: the sufferings of punishment that come at times are like a man chastening his son so that he goes on a good path, for his good. The father does all he can so that his son improves his affairs and deeds for his own good. And one cannot imagine at all that the father would devise some trick so that his son goes on a bad path and can be punished. For surely the father does not want his son's punishment, and if he punishes him it is only so that he goes on a good path. So it is impossible that the father himself should cause his son to go on a bad path.
And therefore the punishments of Israel are not bad, but on the contrary, entirely good, for everything follows the purpose and the intention. Not so the punishments of the idolaters: they are to the end, for they are not the Eternal's portion, and not in these is His desire.
Takeaway
"For the Eternal's portion is His people, Yaakov (Jacob) the lot of His inheritance" (Devarim / Deuteronomy 32:9).
"Know in your heart that as a man chastens his son, so the Eternal your Almighty chastens you" (Devarim / Deuteronomy 8:5): the same image of a father in the Torah.
The author of "Arvei Nachal", Rabbi David Shlomo Eibenschutz, was a chasidic rabbi who lived in Safed at the end of his life.