26And the LORD spoke to Moses and to Aaron, saying: 27How long shall this wicked congregation complain against me? I have heard the complaints of the Israelites, which they complain against me. 28Say to them, “As I live,” says the LORD, “I will do to you the very things I heard you say: 29your dead bodies shall fall in this very wilderness; and of all your number, included in the census, from twenty years old and upward, who have complained against me, 30not one of you shall come into the land in which I swore to settle you, except Caleb son of Jephunneh and Joshua son of Nun. 31But your little ones, who you said would become booty, I will bring in, and they shall know the land that you have despised. 32But as for you, your dead bodies shall fall in this wilderness. 33And your children shall be shepherds in the wilderness for forty years, and shall suffer for your faithlessness, until the last of your dead bodies lies in the wilderness. 34According 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.” 35I the LORD have spoken; surely I will do thus to all this wicked congregation gathered together against me: in this wilderness they shall come to a full end, and there they shall die.
36And the men whom Moses sent to spy out the land, who returned and made all the congregation complain against him by bringing a bad report about the land – 37the men who brought an unfavorable report about the land died by a plague before the LORD. 38But Joshua son of Nun and Caleb son of Jephunneh alone remained alive, of those men who went to spy out the land.
39When Moses told these words to all the Israelites, the people mourned greatly. 40They rose early in the morning and went up to the heights of the hill country, saying, “Here we are. We will go up to the place that the LORD has promised, for we have sinned.” 41But Moses said, “Why do you continue to transgress the command of the LORD? That will not succeed. 42Do not go up, for the LORD is not with you; do not let yourselves be struck down before your enemies. 43For the Amalekites and the Canaanites will confront you there, and you shall fall by the sword; because you have turned back from following the LORD, the LORD will not be with you.” 44But they presumed to go up to the heights of the hill country, even though the ark of the covenant of the LORD, and Moses, had not left the camp. 45Then the Amalekites and the Canaanites who lived in that hill country came down and defeated them, pursuing them as far as Hormah.