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.