26 And the LORD spoke to Moses and to Aaron, saying, 27 “How long shall this wicked congregation grumble against me? I have heard the grumblings of the people of Israel, which they grumble against me. 28 Say to them, ‘As I live, declares the LORD, what you have said in my hearing I will do to you: 29 your dead bodies shall fall in this wilderness, and of all your number, listed in the census from twenty years old and upward, who have grumbled against me, 30 not one shall come into the land where I swore that I would make you dwell, except Caleb the son of Jephunneh and Joshua the son of Nun. 31 But your little ones, who you said would become a prey, I will bring in, and they shall know the land that you have rejected. 32 But as for you, your dead bodies shall fall in this wilderness. 33 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. 34 According to the number of the days in which you spied out the land, forty days, a year for each day, you shall bear your iniquity forty years, and you shall know my displeasure.’ 35 I, the LORD, have spoken. Surely this will I do to all this wicked congregation who are gathered together against me: in this wilderness they shall come to a full end, and there they shall die.”
36 And the men whom Moses sent to spy out the land, who returned and made all the congregation grumble against him by bringing up a bad report about the land—37 the men who brought up a bad report of the land—died by plague before the LORD. 38 Of those men who went to spy out the land, only Joshua the son of Nun and Caleb the son of Jephunneh remained alive.