The Lord was angry with the people and made them wander in the wilderness for forty years until that whole generation that had displeased him was dead.