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

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