And the LORD said to Moses and to Aaron, "How long shall this wicked congregation murmur against me? I have heard the murmurings of the people of Israel, which they murmur against me. Say to them, 'As I live,' says the LORD, 'what you have said in my hearing I will do to you: your dead bodies shall fall in this wilderness; and of all your number, numbered from twenty years old and upward, who have murmured against me, not one shall come into the land where I swore that I would make you dwell, except Caleb the son of Jephun'neh and Joshua the son of Nun. But your little ones, who you said would become a prey, I will bring in, and they shall know the land which you have despised. But as for you, your dead bodies shall fall in this wilderness. And your children shall be shepherds in the wilderness forty years, and shall suffer for your faithlessness, until the last of your dead bodies lies in the wilderness. According to the number of the days in which you spied out the land, forty days, for every day a year, you shall bear your iniquity, forty years, and you shall know my displeasure.' I, the LORD, have spoken; surely this will I do to all this wicked congregation that are gathered together against me: in this wilderness they shall come to a full end, and there they shall die."
And the men whom Moses sent to spy out the land, and who returned and made all the congregation to murmur against him by bringing up an evil report against the land, the men who brought up an evil report of the land, died by plague before the LORD.
But Joshua the son of Nun and Caleb the son of Jephun'neh remained alive, of those men who went to spy out the land. And Moses told these words to all the people of Israel, and the people mourned greatly. And they rose early in the morning, and went up to the heights of the hill country, saying, "See, we are here, we will go up to the place which the LORD has promised; for we have sinned."
But Moses said, "Why now are you transgressing the command of the LORD, for that will not succeed? Do not go up lest you be struck down before your enemies, for the LORD is not among you. For there the Amal'ekites and the Canaanites are before you, and you shall fall by the sword; because you have turned back from following the LORD, the LORD will not be with you."
But they presumed to go up to the heights of the hill country, although neither the ark of the covenant of the LORD, nor Moses, departed out of the camp. Then the Amal'ekites and the Canaanites who dwelt in that hill country came down, and defeated them and pursued them, even to Hormah.