Bamidbar / Numbers 4:18 · Drash
אַל־תַּכְרִיתוּ אֶת־שֵׁבֶט מִשְׁפְּחֹת הַקְּהָתִי מִתּוֹךְ הַלְוִיִּם׃
"Do not let the tribe of the families of the Kehatites be cut off from among the Levites.
Drash דְּרָשׁ
The righteous do not fall with the wicked
When a whole class is punished for one pupil's misdeed, it feels unjust. Can the guilty be punished without touching the innocent?
The midrash: a king of flesh and blood against whom a province rebelled kills everyone in it without distinction, the good with the bad. But the Holy One, blessed is He, is not so: He destroys the wicked and saves the righteous. So it was in the generation of the flood, in Sodom and in Egypt. So too at the golden calf: the tribe of Levi took no part in the sin, so Moshe (Moses) and Aharon (Aaron) were told: "Do not let them be cut off."
How Midrash Tanchuma (Buber) explain it
Midrash Tanchuma (Buber) Do not let them be cut off
Of this Scripture says: "The Eternal is good, a stronghold in the day of trouble" (Nachum / Nahum 1:7). The measure of the Holy One, blessed is He, is not like the measure of flesh and blood. A king of flesh and blood against whom a province rebelled makes a slaughter in it and kills the good with the bad. He does not say: "This one sinned, and this one did not sin," but kills them all. But the Holy One, blessed is He, is not so. When a generation angers Him, He saves the righteous and destroys the wicked.
The generation of Enosh sinned, and He destroyed them, but He saved Chanoch (Enoch): "And Chanoch walked with the Almighty" (Bereshit / Genesis 5:24). Why? "In the day of trouble, and He knows those who take refuge in Him" (Nachum / Nahum 1:7). The generation of the flood angered Him, and He destroyed them, as it says: "And He wiped out every existing thing" (Bereshit / Genesis 7:23), but He saved Noach (Noah), as it says: "But Noach found favour" (Bereshit / Genesis 6:8). So too the people of Sodom: He destroyed them, as it says: "And the Eternal rained upon Sodom" (Bereshit / Genesis 19:24), but He saved Lot, as it says: "And He sent Lot out" (Bereshit / Genesis 19:29). He brought darkness upon the Egyptians, "but all the children of Israel had light in their dwellings" (Shemot / Exodus 10:23).
They went out of Egypt, came into the wilderness and did that same deed, except the tribe of Levi, as it says: "And he said: Whoever is for the Eternal, to me!" (Shemot / Exodus 32:26). What is "Whoever is for the Eternal"? Rabbi Shimon bar Yochai says: "Whoever did not give an earring for the idol, let him come to me." "And all the sons of Levi gathered to him" (there). The Holy One, blessed is He, said: "In the day of trouble He knows those who take refuge in Him": who took part in the deed of the calf, and who did not. What did He do? He struck those who sinned, as it says: "And the Eternal struck the people" (Shemot / Exodus 32:35). But of the tribe of Levi, who gave their souls for the Name of the Holy One, blessed is He, He said to Moshe and Aharon: "Do not let them be cut off."
Takeaway
The words "The Eternal is good, a stronghold in the day of trouble, and He knows those who take refuge in Him" are from the prophet Nachum (Nahum) (Nachum / Nahum 1:7). The midrash reads them so: in the day of trouble the Eternal tells apart who is faithful to Him.
Enosh is Adam's grandson. The midrashim hold that in his generation people began to serve idols (Rashi on Bereshit / Genesis 4:26).
"That same deed" is the golden calf: for it the people gave Aharon their golden earrings (Shemot / Exodus 32:2–4).
Slaughter without distinction (אַנְדְּרוֹלוֹמוּסְיָא) is a word that came into Hebrew from Greek: "the killing of all the men."