Bamidbar8:19

וָאֶתְּנָה אֶת־הַלְוִיִּם נְתֻנִים לְאַהֲרֹן וּלְבָנָיו מִתּוֹךְ בְּנֵי יִשְׂרָאֵל לַעֲבֹד אֶת־עֲבֹדַת בְּנֵי־יִשְׂרָאֵל בְּאֹהֶל מוֹעֵד וּלְכַפֵּר עַל־בְּנֵי יִשְׂרָאֵל וְלֹא יִהְיֶה בִּבְנֵי יִשְׂרָאֵל נֶגֶף בְּגֶשֶׁת בְּנֵי־יִשְׂרָאֵל אֶל־הַקֹּדֶשׁ׃

And I have given the Levites, given to Aharon and his sons from among the children of Israel, to do the service of the children of Israel in the Tent of Meeting and to atone for the children of Israel. And there shall be no plague among the children of Israel when the children of Israel come near the holy place."

Bamidbar 8:19

וָאֶתְּנָה אֶת־הַלְוִיִּם נְתֻנִים

Bamidbar / Numbers 8:19 · Sod

Bamidbar 8:19

וָאֶתְּנָה אֶת־הַלְוִיִּם נְתֻנִים לְאַהֲרֹן וּלְבָנָיו מִתּוֹךְ בְּנֵי יִשְׂרָאֵל לַעֲבֹד אֶת־עֲבֹדַת בְּנֵי־יִשְׂרָאֵל בְּאֹהֶל מוֹעֵד וּלְכַפֵּר עַל־בְּנֵי יִשְׂרָאֵל וְלֹא יִהְיֶה בִּבְנֵי יִשְׂרָאֵל נֶגֶף בְּגֶשֶׁת בְּנֵי־יִשְׂרָאֵל אֶל־הַקֹּדֶשׁ׃

And I have given the Levites, given to Aharon and his sons from among the children of Israel, to do the service of the children of Israel in the Tent of Meeting and to atone for the children of Israel. And there shall be no plague among the children of Israel when the children of Israel come near the holy place."

Sod סוֹד

A good eye

You gave up your place to someone else, and it seems you lost. But maybe it was exactly in giving way that you grew?

Kedushat Levi: the one who is chosen is loved more than the rest. So that no one thinks that by choosing the Levites the Almighty stopped loving Israel, the verse names Israel five times. Shem MiShmuel: Israel gave the Levites a place, and this showed their good eye, a generosity that holds all qualities. It became their atonement.

How Kedushat Levi and Shem MiShmuel explain it

Kedushat Levi And I have given the Levites

"And I have given the Levites" (Bamidbar / Numbers 8:19), and in the verse before: "And I took the Levites." Rashi explained on the verse "And I have given": five times "Israel" in the verse, to make known how dear they are. For when a person chooses one thing out of many, it is clear that he loves it more than the rest, since he chose it from them all. And here the Holy One, blessed is He, chose the Levites, and one might think, Heaven forbid, that since He chose the Levites, He no longer loves Israel. That is why "Israel" is written five times in this verse, to make known that Israel is as dear to Him as the Levites. And He chose the Levites only to atone for the children of Israel.

Shem MiShmuel And to atone for the children of Israel

We must understand what their atonement was. The matter is that the children of Israel showed in this a good eye (עַיִן טוֹבָה): they gave the Levites a place, as the midrash on the book of Bamidbar says. And a good eye holds all the qualities, as the sages said: "a good eye" and so on. That is why the Eternal loved them like the five books of the Torah, for everything is held in them. This was their reward for the good eye that holds all qualities. And this is "to atone for the children of Israel": through the Levites Israel brought their good eye into deed. This also explains why the Levites brought offerings of atonement and not the children of Israel: their good eye was their atonement, and they no longer needed offerings of atonement. Reflect on this.

Takeaway

A good eye (עַיִן טוֹבָה) is generosity, gladness at another's good. In the Mishnah it is the first of the good ways named by the disciples of Rabban Yochanan ben Zakkai (Mishnah Avot 2:9).
The Levites took the place of the firstborn of Israel, who were to serve before (Bamidbar / Numbers 8:16–18).
Rashi links the five mentions of Israel in one verse to the five books of the Torah (Rashi on Bamidbar / Numbers 8:19).