Fasting for religious and spiritual reasons has been a part of human custom since pre-history. It is mentioned in the Qur'an, in the Mahabharata, in the Upanishads, and in the Bible, in both the Old and New Testament. In Buddhism it is also taught as a way to getting Nirvana. 