Numbers 32:13

13And the Lord’s anger was kindled against Israel, and he made them awander in the wilderness forty years, until ball the generation that had done evil in the sight of the Lord was gone.
Copyright information for ESV