Deuteronomy 32:50-52

50 you shall die there on the mountain that you ascend and shall be gathered to your kin, as your brother Aaron died on Mount Hor and was gathered to his kin;
51 because both of you broke faith with me among the Israelites at the waters of Meribath-kadesh in the wilderness of Zin, by failing to maintain my holiness among the Israelites.
52 Although you may view the land from a distance, you shall not enter it—the land that I am giving to the Israelites."
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.