Bamidbar31:21

וַיֹּאמֶר אֶלְעָזָר הַכֹּהֵן אֶל־אַנְשֵׁי הַצָּבָא הַבָּאִים לַמִּלְחָמָה זֹאת חֻקַּת הַתּוֹרָה אֲשֶׁר־צִוָּה יְהוָה אֶת־מֹשֶׁה׃

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:

Bamidbar 31:21

וַיֹּאמֶר אֶלְעָזָר הַכֹּהֵן

Bamidbar / Numbers 31:21 · Drash

Bamidbar 31:21

וַיֹּאמֶר אֶלְעָזָר הַכֹּהֵן אֶל־אַנְשֵׁי הַצָּבָא הַבָּאִים לַמִּלְחָמָה זֹאת חֻקַּת הַתּוֹרָה אֲשֶׁר־צִוָּה יְהוָה אֶת־מֹשֶׁה׃

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:

Drash דְּרָשׁ

Moshe's three angers

Even a great person in anger can forget what he knows. The midrash counts three such moments for Moshe (Moses) and asks how a student dared to teach before his teacher.

Midrash Lekach Tov: Rabbi Elazar ben Azaryah counts three places where Moshe (Moses) grew angry and erred: with Aharon's sons, at the rock, and here with the officers. And why did Elazar (Eleazar) teach before him? Some say Moshe himself gave him leave, so the people would grow used to hearing him. Others say he gave the law in Moshe's name.

How Midrash Lekach Tov explain it

Midrash Lekach Tov And Elazar the kohen said to the men of war who went to the battle

How can it be that Moshe (Moses) is alive and Elazar (Eleazar) teaches law? Rabbi Elazar ben Azaryah said: in three places Moshe came to anger and came to error. The first: "And he was angry with Elazar and with Itamar (Ithamar), the sons of Aharon: why did you not eat the sin offering in the holy place?" (Vayikra / Leviticus 10:16–17). The second: "And he said to them: Hear now, you rebels", and "Moshe raised his hand and struck the rock" (Bamidbar / Numbers 20:10–11). And the third: "And Moshe was angry with the officers of the army" (Bamidbar / Numbers 31:14). "And Elazar the kohen said." And some say: Moshe gave him leave to speak before him, so that Israel would not say: "In your teacher's lifetime you did not speak, and now you speak." Another explanation: he said the law in his name before him, as it says: "And Ester (Esther) told the king in the name of Mordechai" (Esther 2:22).

Takeaway

Rabbi Elazar ben Azaryah was a sage of the Mishnah and head of the academy at Yavneh.
When Ester told the king of the plot against him, she named Mordechai, who had uncovered it (Esther 2:21–23). The sages learn from this: whoever says a thing in the name of the one who said it brings redemption to the world (Avot 6:6).