Forty was the number of days that
Prophet Ilyas (Elijah) spent in the wilderness before the angel appeared to him with God's message on Mount Horeb. Forty was the number of days that Prophet Isa was tempted in the desert by Satan. Muhammad praying and fasting in the cave for 40 days.