Devarim / Deuteronomy 34:6 · Pshat
וַיִּקְבֹּר אֹתוֹ בַגַּיְ בְּאֶרֶץ מוֹאָב מוּל בֵּית פְּעוֹר וְלֹא־יָדַע אִישׁ אֶת־קְבֻרָתוֹ עַד הַיּוֹם הַזֶּה׃
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.
Pshat פְּשָׁט
A grave ready since the world began
The place where a person lies sometimes says more about him than the words on the stone. Rashi explains why the grave of Moshe (Moses) was prepared right here.
Sforno: Moshe died on the top of the Pisgah, from where he saw the land, and was buried below, in the valley. Rashi: his grave was prepared opposite Beit Peor already in the six days of Creation, to atone for the sin of Peor. Ibn Ezra: the words "to this day" were written by Yehoshua (Joshua).
How Sforno, Rashi, and Ibn Ezra explain it
Sforno And He buried him
If he buried himself, as some of our sages, of blessed memory, say, it was his separated soul that did this. For he died on the mountain, on the top of the Pisgah, from where he saw the land, as it says: "And Moshe died there", and the burial was in the valley.
Rashi Opposite Beit Peor
His grave was prepared there from the six days of Creation, to atone for the sin of Peor. And this is one of the things created on the eve of Shabbat at twilight.
Ibn Ezra To this day
These are the words of Yehoshua. And it may be that he wrote this at the end of his days.
Takeaway
Before his death Moshe went up Mount Nevo, to the top of the Pisgah, and the Eternal showed him the whole land (Devarim / Deuteronomy 34:1).
The sin of Peor: at Shittim the people began to commit harlotry with the daughters of Moav (Moab) and attached themselves to Baal Peor (Bamidbar / Numbers 25:1–3). Moshe is buried opposite that place.