The LORD said to Moses and Aaron:
“How long will this wicked community grumble against me? I have heard the complaints of these grumbling Israelites.
So tell them, ‘As surely as I live, declares the LORD, I will do to you the very thing I heard you say:
In this wilderness your bodies will fall—every one of you twenty years old or more who was counted in the census and who has grumbled against me.
Not one of you will enter the land I swore with uplifted hand to make your home, except Caleb son of Jephunneh and Joshua son of Nun.
As for your children that you said would be taken as plunder, I will bring them in to enjoy the land you have rejected.
But as for you, your bodies will fall in this wilderness.
Your children will be shepherds here for forty years, suffering for your unfaithfulness, until the last of your bodies lies in the wilderness.
For forty years—one year for each of the forty days you explored the land—you will suffer for your sins and know what it is like to have me against you.’
I, the LORD, have spoken, and I will surely do these things to this whole wicked community, which has banded together against me. They will meet their end in this wilderness; here they will die.”
So the men Moses had sent to explore the land, who returned and made the whole community grumble against him by spreading a bad report about it—
these men who were responsible for spreading the bad report about the land were struck down and died of a plague before the LORD.
Of the men who went to explore the land, only Joshua son of Nun and Caleb son of Jephunneh survived.
When Moses reported this to all the Israelites, they mourned bitterly.
Early the next morning they set out for the highest point in the hill country, saying, “Now we are ready to go up to the land the LORD promised. Surely we have sinned!”
But Moses said, “Why are you disobeying the LORD’s command? This will not succeed!
Do not go up, because the LORD is not with you. You will be defeated by your enemies,
for the Amalekites and the Canaanites will face you there. Because you have turned away from the LORD, he will not be with you and you will fall by the sword.”
Nevertheless, in their presumption they went up toward the highest point in the hill country, though neither Moses nor the ark of the LORD’s covenant moved from the camp.
Then the Amalekites and the Canaanites who lived in that hill country came down and attacked them and beat them down all the way to Hormah.