Bamidbar / Numbers 3:1 · Pshat
וְאֵלֶּה תּוֹלְדֹת אַהֲרֹן וּמֹשֶׁה בְּיוֹם דִּבֶּר יְהוָה אֶת־מֹשֶׁה בְּהַר סִינָי׃
And these are the generations of Aharon and Moshe on the day the Eternal spoke with Moshe on Mount Sinai.
Pshat פְּשָׁט
Children saved by prayer
You remember a teacher who once believed in you and pulled you out of trouble. He is not your father, yet at times you feel you owe him your life.
Rashi: the verse names only the sons of Aharon (Aaron), yet they are called the generations of Moshe (Moses) too, because he taught them Torah: whoever teaches Torah to another's son is as if he gave birth to him. Kli Yakar asks: but Moshe taught the whole people. And he answers: after the calf the Eternal wished to destroy Aharon's sons, and Moshe saved two of them, Elazar (Eleazar) and Itamar (Ithamar), by his prayer, so they are like his children.
How Rashi and Kli Yakar explain it
Rashi And these are the generations of Aharon and Moshe
Yet only the sons of Aharon are mentioned. But they are called the generations of Moshe because he taught them Torah. This teaches: whoever teaches Torah to the son of his fellow, Scripture regards him as if he had given birth to him.
Kli Yakar And these are the generations of Aharon and Moshe
Rashi explained: since Moshe taught them Torah, it is as if he gave birth to them, and they became his generations on the day the Eternal spoke with him on Mount Sinai. But this is difficult: if so, all Israel are his generations, for he taught Torah to all of them. And further: why does it then say again "These are the names of the sons of Aharon," and Moshe is not mentioned?
It seems to me the matter is this. It says: "And the Eternal was very angry with Aharon, to destroy him" (Devarim / Deuteronomy 9:20). And destruction is nothing other than the loss of children, as Rashi explained in the section Ekev, and Moshe's prayer helped by half. It follows that the two sons whom Moshe saved by his prayer are as if he gave birth to them, and they became his generations on the day the Eternal spoke with Moshe on Mount Sinai: "Go, get down" (Shemot / Exodus 32:7). And afterward he prayed for them on the mountain, and the Eternal answered him there on the mountain.
When it says "these are the generations of Aharon and Moshe," Moshe is mentioned for the sake of Elazar (Eleazar) and Itamar (Ithamar), whom he saved from death. And where it then says "these are the names of the sons of Aharon" without mentioning Moshe, it speaks of Nadav (Nadab) and Avihu (Abihu), for them he did not save from death. This explains why the death of Nadav and Avihu and the survival of Elazar and Itamar are mentioned here.
Takeaway
Rashi on the verse about the anger against Aharon: "destruction" is the loss of children, and Moshe's prayer helped by half: two died and two remained (Rashi on Devarim / Deuteronomy 9:20).
"Go, get down" are the words of the Eternal to Moshe on Mount Sinai when the people made the golden calf (Shemot / Exodus 32:7). There too Moshe prays for the people.
Nadav and Avihu died when they offered "strange fire" before the Eternal (Vayikra / Leviticus 10:1–2, Bamidbar / Numbers 3:4).
Ekev is a section of the book of Devarim (Devarim / Deuteronomy 7:12–11:25) in which Moshe recalls the sin of the calf.