In religion, 40 seems to be shorthand for “a long time.” Jesus spent 40 days fasting in the wilderness being tempted by the devil; the great flood lasted 40 days and 40 nights; the Jewish people wandered the desert for 40 years.