God spoke to Moses and Aaron:
"How long is this going to go on, all this grumbling against me by this evil-infested community? I've had my fill of complaints from these grumbling Israelites.
Tell them, As I live - God's decree - here's what I'm going to do:
Your corpses are going to litter the wilderness - every one of you twenty years and older who was counted in the census, this whole generation of grumblers and grousers.
Not one of you will enter the land and make your home there, the firmly and solemnly promised land, except for Caleb son of Jephunneh and Joshua son of Nun.
"Your children, the very ones that you said would be taken for plunder, I'll bring in to enjoy the land you rejected
while your corpses will be rotting in the wilderness.
These children of yours will live as shepherds in the wilderness for forty years, living with the fallout of your whoring unfaithfulness until the last of your generation lies a corpse in the wilderness.
You scouted out the land for forty days; your punishment will be a year for each day, a forty-year sentence to serve for your sins - a long schooling in my displeasure.