The Lord was angry with Israel, and made them wander around in the desert for forty years, until the whole generation who had done evil in his sight had died.