Bamidbar / Numbers 31:21 · Remez
וַיֹּאמֶר אֶלְעָזָר הַכֹּהֵן אֶל־אַנְשֵׁי הַצָּבָא הַבָּאִים לַמִּלְחָמָה זֹאת חֻקַּת הַתּוֹרָה אֲשֶׁר־צִוָּה יְהוָה אֶת־מֹשֶׁה׃
And Elazar the kohen said to the men of war who went to the battle: "This is the statute of the Torah which the Eternal commanded Moshe:
Remez רֶמֶז
"The statute of the Torah" twice
The words "this is the statute of the Torah" appear in the Torah only twice. The commentators link the two places and find in them a shared lesson about knowledge and anger.
Agra DeKala: both times the law of purification is said through Elazar (Eleazar). Purity is bound to "daat", knowledge, and Moshe (Moses) is the root of knowledge, so when he grew angry the law of purity left him. Kli Yakar: purification by the red heifer is like the whole Torah, holding a hidden wisdom that even Shlomo (Solomon) did not grasp.
How Agra DeKala and Kli Yakar explain it
Agra DeKala This is the statute of the Torah (Bamidbar / Numbers 19:2)
Twice in the masorah. This is one place, and the other is on purging vessels in the portion of Matot (Bamidbar / Numbers 31:21). There Elazar (Eleazar) said the section and not Moshe (Moses), because Moshe grew angry and a law was hidden from him (Vayikra Rabbah 13:1). And the section before it, "And you, encamp" (Bamidbar / Numbers 31:19), Moshe said after his anger, and it was not hidden from him. Only the section of purity was hidden from him, because purity is the secret of "daat" (knowledge), for "and knowledge" (Yeshayahu / Isaiah 33:6) is the order of Purities in the Mishnah (Shabbat 31a). And Moshe is the secret of knowledge, and when he grew angry the law of purity left him, and the section was said precisely through Elazar. So here too the commandment is given precisely through Elazar, and this will be explained further.
Kli Yakar This is the statute of the Torah
And in the book Akedat Yitzchak a midrash is brought that calls the heifer Bat-Sheva, mother of Shlomo (Solomon), and he explained it his way. And I say: as a mother rules over her son, so the heifer ruled over all of Shlomo's wisdom, for he could not enter its secret. And this explains why "the statute of the Torah" is said only here and in the portion of Matot, in the laws of purging vessels with the water of sprinkling: purification by the heifer as a whole is likened to the Torah as a whole, through the hidden wisdom within it.
Takeaway
The masorah is a body of notes counting how many times and where a word or phrase appears in Scripture.
The words "and knowledge" from the verse "and the faith of your times shall be a strength of salvations, wisdom and knowledge" (Yeshayahu / Isaiah 33:6) are read by the Talmud as the six orders of the Mishnah: "knowledge" is the order of Taharot, on purity (Shabbat 31a).
Of the red heifer Shlomo said: "I said, I will be wise, but it was far from me" (Kohelet / Ecclesiastes 7:23), so the midrash reads it (Bamidbar Rabbah 19:3).