Bamidbar / Numbers 3:40 · Sod
וַיֹּאמֶר יְהוָה אֶל־מֹשֶׁה פְּקֹד כָּל־בְּכֹר זָכָר לִבְנֵי יִשְׂרָאֵל מִבֶּן־חֹדֶשׁ וָמָעְלָה וְשָׂא אֵת מִסְפַּר שְׁמֹתָם׃
And the Eternal said to Moshe: "Count every firstborn male of the children of Israel from a month old and up, and take the number of their names.
Sod סוֹד
The firstborn begins, the Levite completes
You began an important task, but your strength ran out, and someone else finished it. Was your part lost? Or would its end never have come without your beginning?
Sefat Emet: of the firstborn it says "Mine they shall be," and what is called "Mine" lasts forever. So the holiness of the firstborn did not leave. Through the sin they lost the strength to bring the task to its end, and the Eternal joined them to the work of the Levites. The firstborn begins, the Levite completes, and they need each other.
How Sefat Emet explain it
Sefat Emet On the redemption of the firstborn by the Levites
We find in the midrash: wherever it says "Mine," it lasts forever. And of the firstborn it is written: "Mine they shall be." If so, how was their holiness taken from them?
So it seems that the holiness of the firstborn remained. For with holy things the law is: "both it and its substitute shall be holy." Only that through the sin the strength was taken from the firstborn, and they could not complete their work. And the Eternal joined them to the work of the Levites.
But both needed each other. The firstborn is the one who begins, and the Levite the one who completes. For through the firstborn holiness began, when the Eternal made them holy to Himself. And from this, afterwards, came the completion by the hands of the Levites.
Takeaway
"Mine they shall be. I am the Eternal" is said of the firstborn (Bamidbar / Numbers 3:13).
"Both it and its substitute shall be holy" is the law of a consecrated animal exchanged for another (Vayikra / Leviticus 27:10).
The sin through which the firstborn lost their strength is the golden calf: the service was in the hands of the firstborn, and when they sinned with the calf they were disqualified, and the Levites were chosen in their place (Rashi on Bamidbar / Numbers 3:12).