Why is 40 special in the Bible?

40 is special in the bible as there was a flood for 40 days, Jesus fasted for 40 days and 40 nights. After Jesus arose from the grave he stayed for 40 days on earth.