Vayikra16:1

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

And the Eternal spoke to Moshe (Moses) after the death of the two sons of Aharon (Aaron), when they drew near before the Eternal and died.

Vayikra 16:1

וַיְדַבֵּר יְהוָה אֶל־מֹשֶׁה

Vayikra / Leviticus 16:1 · Drash

Vayikra 16:1

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

And the Eternal spoke to Moshe (Moses) after the death of the two sons of Aharon (Aaron), when they drew near before the Eternal and died.

Drash דְּרָשׁ

Why the sons of Aharon died

When a good person dies, people start to whisper: there must have been something behind it. The midrash argues with that whisper.

Pesikta DeRav Kahana: in four places the Torah mentions the death of the sons of Aharon (Aaron) together with their misdeed. Rabbi Elazar HaModai explains why: so that no one would say they had secret sins. Bar Kappara, in the name of Rabbi Yirmiyah bar Elazar, names four things for which they died, and the last of them is that each acted on his own, without taking counsel with the other.

How Pesikta DeRav Kahana explain it

Pesikta DeRav Kahana After the death of the two sons of Aharon

In four places Scripture mentions the death of the sons of Aharon and mentions their misdeed. Why all this? So that you know that they had only this sin. Rabbi Elazar HaModai said: see how grievous the death of the sons of Aharon is to the Holy One, blessed is He: in every place where Scripture mentions their death, it mentions their misdeed too. Why all this? So as to give people no pretext: let no one say that they had bad deeds in secret and died for that.

Bar Kappara said in the name of Rabbi Yirmiyah bar Elazar: for four things the sons of Aharon died: for drawing near (קְרִיבָה), for offering (הַקְרָבָה), for strange fire and for not taking counsel with each other. For drawing near: they went into the innermost Sanctuary. For offering: they offered an offering they had not been commanded to bring. For strange fire: they brought in fire from the kitchen stove. And for not taking counsel with each other: Rabbi Chiya taught: "each his fire pan" (Vayikra / Leviticus 10:1), each acted on his own and did not take counsel with the other.

Takeaway

Pesikta DeRav Kahana collects interpretations on the readings of festivals and special Shabbatot. This passage is from its chapter on the reading of Yom Kippur (the Day of Atonement), which opens with our verse (Mishnah Megillah 3:5).
The four places where the Torah mentions the death of the sons of Aharon: Vayikra / Leviticus 10:1–2, 16:1, Bamidbar / Numbers 3:4 and 26:61.
The words "drawing near" (קְרִיבָה) and "offering" (הַקְרָבָה) come from one root, קרב, "near". The same root is in our verse: "when they drew near (בְּקָרְבָתָם) before the Eternal".
The sons of Aharon were Nadav (Nadab) and Avihu (Abihu), and it is said of them that they offered "strange fire" (Vayikra / Leviticus 10:1).