Deuteronomy 32:48-52
48 On that same day the Lord told Moses, 49 “Go up into the Abarim Range to Mount Nebo in Moab, across from Jericho, and view Canaan, the land I am giving the Israelites as their own possession. 50 There on the mountain that you have climbed you will die and be gathered to your people, just as your brother Aaron died on Mount Hor and was gathered to his people. 51 This is because both of you broke faith with me in the presence of the Israelites at the waters of Meribah Kadesh in the Desert of Zin and because you did not uphold my holiness among the Israelites. 52 Therefore, you will see the land only from a distance; you will not enter the land I am giving to the people of Israel.”

Deuteronomy 34:4-7
4 Then the Lord said to him, “This is the land I promised on oath to Abraham, Isaac and Jacob when I said, ‘I will give it to your descendants.’ I have let you see it with your eyes, but you will not cross over into it.”

5 And Moses the servant of the Lord died there in Moab, as the Lord had said. 6 He buried him in Moab, in the valley opposite Beth Peor, but to this day no one knows where his grave is. 7 Moses was a hundred and twenty years old when he died, yet his eyes were not weak nor his strength gone.