Numbers 32:13

So the LORD's anger was aroused against Israel, and He made them wander in the wilderness forty years, until all the generation that had done evil in the sight of the LORD was gone.