Numbers 28-32
Moses said to the Gadites and Reubenites, "Shall your countrymen go to war while you sit here? Why do you discourage the Israelites from going over into the land the LORD has given them? This is what your fathers did when I sent them from Kadesh Barnea to look over the land. After they went up to the Valley of Eshcol and viewed the land, they discouraged the Israelites from entering the land the LORD had given them. The LORD's anger was aroused that day and he swore this oath: 'Because they have not followed me wholeheartedly, not one of the men twenty years old or more who came up out of Egypt will see the land I promised on oath to Abraham, Isaac and Jacob- not one except Caleb son of Jephunneh the Kenizzite and Joshua son of Nun, for they followed the LORD wholeheartedly.' The LORD's anger burned against Israel and he made them wander in the desert forty years, until the whole generation of those who had done evil in his sight was gone.
"And here you are, a brood of sinners, standing in the place of your fathers and making the LORD even more angry with Israel. If you turn away from following him, he will again leave all this people in the desert, and you will be the cause of their destruction."