Deuteronomy 32:50-52 New American Standard Bible (NASB)

50. Then die on the mountain where you ascend, and be gathered to your people, as Aaron your brother died on Mount Hor and was gathered to his people,

51. because you broke faith with Me in the midst of the sons of Israel at the waters of Meribah-kadesh, in the wilderness of Zin, because you did not treat Me as holy in the midst of the sons of Israel.

52. For you shall see the land at a distance, but you shall not go there, into the land which I am giving the sons of Israel."

Deuteronomy 32