Deuteronomy 1:37-38 KJV

37 Also the LORD was angry with me for your sakes, saying , Thou also shalt not go in thither.
38 But Joshua the son of Nun, which standeth before thee, he shall go in thither: encourage him: for he shall cause Israel to inherit it.