Devarim34:6

וַיִּקְבֹּר אֹתוֹ בַגַּיְ בְּאֶרֶץ מוֹאָב מוּל בֵּית פְּעוֹר וְלֹא־יָדַע אִישׁ אֶת־קְבֻרָתוֹ עַד הַיּוֹם הַזֶּה׃

And [the Eternal] buried him in the valley in the land of Moav, opposite Beit Peor, and no one knows his burial place to this day.

Devarim 34:6

וַיִּקְבֹּר אֹתוֹ בַגַּיְ

Devarim / Deuteronomy 34:6 · Sod

Devarim 34:6

וַיִּקְבֹּר אֹתוֹ בַגַּיְ בְּאֶרֶץ מוֹאָב מוּל בֵּית פְּעוֹר וְלֹא־יָדַע אִישׁ אֶת־קְבֻרָתוֹ עַד הַיּוֹם הַזֶּה׃

And [the Eternal] buried him in the valley in the land of Moav, opposite Beit Peor, and no one knows his burial place to this day.

Sod סוֹד

Facing what he could not understand

Sometimes a person is so far from a certain evil that he cannot even grasp how it is possible. The sage of Izhbitza sees that the graves of Moshe (Moses) and Aharon (Aaron) stand right opposite such an evil.

Mei HaShiloach: Moshe held the knowledge of all Israel, and knowledge pushes away lewdness, which comes with a spirit of folly. Moshe could not understand how lewdness could exist in the world at all, so his grave is opposite Beit Peor, a place of lewdness. And Aharon, a man of kindness and peace, could not understand how murder could exist, so his grave is on the border of Edom, which lives by the sword.

How Mei HaShiloach explain it

Mei HaShiloach And the Eternal said to Moshe and to Aharon at Mount Hor, on the border of the land of Edom: "Let Aharon be gathered to his people."

And of Moshe our teacher it is written: "And He buried him in the valley in the land of Moav (Moab), opposite Beit Peor" (Devarim / Deuteronomy 34:6). The matter is that Moshe our teacher, peace be upon him, held the knowledge (דַּעַת) of all Israel, as it says in the holy Zohar (section Ki Tisa): he is the sum of all the Jews. And by this lewdness is pushed away, which comes when a spirit of folly enters a person. Therefore his grave is opposite Beit Peor, where the place Shittim was, and the Midrash says (Bemidbar Rabbah 20:21): Shittim was a spring of lewdness. And Moshe our teacher, whose trait is the opposite of this, did not understand how lewdness could exist in the world at all. Therefore his grave is opposite Beit Peor.

And Aharon was a man of kindness (חֶסֶד), his trait is to love peace, and by this murder is pushed away from Israel. For his trait, the trait of kindness and peace, is the opposite of murder, and he did not understand how murder could exist in the world. Therefore his grave is on the border of the land of Edom, for the trait of Edom is murder, as it is written: "And by your sword you shall live" (Bereshit / Genesis 27:40). And in the holy Zohar (section Balak) the guardian angel of Esav (Esau) answered: "For my dominion is over killing." For in this is its existence and life until the time of the end. Therefore Aharon's grave too is on the border of the land of Edom. For very deep are the thoughts of the Eternal.

Takeaway

Aharon died on the top of Mount Hor, on the border of Edom (Bamidbar / Numbers 20:23–28).
The words "And by your sword you shall live" were said by Yitzchak to Esav, the forefather of Edom (Bereshit / Genesis 27:40).
At Shittim the people began to commit harlotry with the daughters of Moav (Bamidbar / Numbers 25:1). Mei HaShiloach sets Moshe opposite that place: knowledge pushes away lewdness.
Mei HaShiloach cites Bemidbar Rabbah 20:21, and in today's numbering it is 20:22: "Shittim was a spring of lewdness" (מַעְיַן שִׁטִּים שֶׁל זְנוּת).