Numbers 32:8-13
32:8 Your fathers did the same thing when I sent them from Kadesh Barnea to see the land.
32:9 When they went up to the Eshcol Valley and saw the land, they frustrated the intent of the Israelites so that they did not enter the land that the Lord had given them.
32:10 So the anger of the Lord was kindled that day, and he swore,
32:11 ‘Because they have not followed me wholeheartedly, not one of the men twenty years old and upward who came from Egypt will see the land that I swore to give to Abraham, Isaac, and Jacob,
32:12 except Caleb son of Jephunneh the Kenizzite, and Joshua son of Nun, for they followed the Lord wholeheartedly.’
32:13 So the Lord’s anger was kindled against the Israelites, and he made them wander in the wilderness for forty years, until all that generation that had done wickedly before the Lord was finished.