In the Bible, Jesus is tempted by the Devil after this many days in the wilderness
... them from the tree of life; in Matthew, after Jesus drove the devil away, .... 
meaning that it was forty days, the number of duration and testing.