 The practice of khalwah is regularly followed by the Sufis, with the permission and the supervision of a Sufi authority.The Sufis base the assigning of forty days of khalwa period on the forty days Allah had appointed for Musa (Moses) as a fasting period before speaking to him, as mentioned in different chapters in the Qur'an.One of them is from surat al-Baqarah.