Numbers 32:10-13
10 The Lord’s anger was aroused that day and he swore this oath:
11 ‘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—
12 not one except Caleb son of Jephunneh the Kenizzite and Joshua son of Nun, for they followed the Lord wholeheartedly.’
13 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.