Deuteronomy 1:37-39

37 Also the LORD was angry with me for your sakes, saying, Thou shalt not go in there either.

38 [But] Joshua, the son of Nun, who stands before thee, he shall go in there; encourage him; for he shall cause Israel to inherit it.

39 Moreover your little ones, whom ye said should be a prey and your children who in that day had no knowledge between good and evil, they shall go in there, and unto them will I give it, and they shall inherit it.