Numbers 14:31-41

31 But your little ones, whom ye said should be a prey, I will bring them in, and they shall know the land which ye have despised.
32 But as for you, your carcasses, they shall fall in this wilderness.
33 And your children shall be shepherded in the wilderness forty years and bear your fornications until your carcasses are wasted in the wilderness.
34 After the number of the days in which ye spied out the land, even forty days, each day for a year, ye shall bear your iniquities forty years, and ye shall know my reason for annulling my promise.
35 I, the LORD, have spoken, I will surely do it unto all this evil congregation that are gathered together against me; in this wilderness they shall be consumed, and there they shall die.
36 And the men, whom Moses had sent to spy out the land, who returned and made all the congregation to murmur against him by bringing up a slander upon the land,
37 even those men that brought an evil report of the land, died by the plague before the LORD.
38 But Joshua, the son of Nun, and Caleb, the son of Jephunneh, remained alive of the men that went to spy out the land.
39 And Moses told these things unto all the sons of Israel, and the people mourned greatly.
40 And they rose up early in the morning and climbed up into the top of the mountain, saying, Here we are prepared to go up unto the place of which the LORD has spoken; for we have sinned.
41 And Moses said, Why do ye break the commandment of the LORD? This also shall not prosper.