40 Day Spiritual Retreat: Does It Have a Basis in Islam?

In Islam, is there any significance to the period of forty days? Why do certain people insist on going into spiritual retreats for this length of time? Some allude to the verse: And when We appointed for Moses forty nights [Qur'an 2:51], saying that it points to the importance and justification of a forty day spiritual retreat. What,…