Different religions have varying stances on the use of cannabis, historically and presently. In ancient history some religions used cannabis as an entheogen, particularly in the Indian subcontinent where the tradition continues on a more limited basis.

In the modern era Rastafari use cannabis as a sacred herb. Meanwhile, religions with prohibitions against intoxicants, including Buddhism, Baháʼí, and Latter-day Saints (Mormons) forbid usage except with a prescription from a doctor; others have opposed the use of cannabis by members, or in some cases opposed the liberalization of cannabis laws. Other groups, such as some Protestant and Jewish factions, and certain Islamic schools (madhhab) have supported the use of medicinal cannabis.

Historical religions In Ancient India The earliest known reports regarding the sacred status of cannabis in the Indian subcontinent come from the Atharva Veda, estimated to have been written sometime around 2000–1400 BCE, which mentions cannabis as one of the "five sacred plants... which release us from anxiety" and that a guardian angel resides in its leaves. The Vedas also refer to it as a "source of happiness," "joy-giver" and "liberator," and in the Raja Valabba, the gods send hemp to the human race so that they might attain delight, lose fear and have sexual desires- It is most often with the God Shiva known as the "Lord of Bhang".

In Ancient Egypt there is a written record of the medicinal use of hemp. Thus the Ebers papyrus (written 1500 BCE) mentions the use of oil from hempseedBardinet, Thierry. "The Medical Papyri of Pharaonic Egypt". Fayard (April 5, 1995), part II: Full translation and commentary. to treat vaginal inflammation. Cannabis pollen was recovered from the tomb of Ramses II, who governed for sixty-seven years during the 19th dynasty, and several mummies contain trace cannabinoids.

The Assyrians, Egyptians, and Hebrews, among other Semitic cultures of the Middle East, mostly acquired cannabis from Aryan cultures and have burned it as an incense as early as 1000 BC. Cannabis oil was likely used throughout the Middle East for centuries before and after the birth of Jesus.

Cannabis has been used by shamanic and pagan cultures to ponder deeply religious and philosophical subjects related to their tribe or society, to achieve a form of enlightenment, to unravel unknown facts and realms of the human mind and subconscious, and also as an aphrodisiac during rituals or orgies. There are several references in Greek mythology to a powerful drug that eliminated anguish and sorrow. Herodotus wrote about early ceremonial practices by the Scythians, thought to have occurred from the 5th to 2nd century BCE.

In addition, according to Herodotus, the Dacians and Scythians had a tradition where a fire was made in an enclosed space and cannabis seeds were burned and the resulting smoke ingested.

In ancient Germanic paganism, cannabis was possibly associated with the Norse love goddess, Freya. Linguistics offers further evidence of prehistoric use of cannabis by Germanic peoples: The word hemp derives from Old English hænep, from Proto-Germanic *hanapiz. While *hanapiz has an unknown origin, some scholars believe it is a unreconstructed loanword of Scythian origin. The Greek word κάνναβις, which that cannabis derives from, is also thought to be a loanword of the same Scythian origin. While a loanword, *hanapiz was borrowed early enough to be affected by Grimm's Law, by which Proto-Indo-European initial *k- becomes *h- in Germanic. The shift of *k→h indicates it was a loanword into the Germanic parent language at a time depth no later than the separation of Common Germanic from Proto-Indo-European, about 500 BC.

Baháʼí Faith In the Baháʼí Faith, use of alcohol and other drugs for intoxication, as opposed to medical prescription, is prohibited (see Baháʼí laws). But Baháʼí practice is such laws should be applied with "tact and wisdom". The use of tobacco is an individual decision; it is yet strongly frowned on but not explicitly forbidden. Baháʼí authorities have spoken against intoxicant drugs since the earliest stages of the religion, with ‘Abdu’l-Bahá writing:

Regarding marijuana specifically, The Universal House of Justice directs the reader to consider the above passage penned by ‘Abdu’l-Bahá and enjoins the following:

Later, the Universal House of Justice made allowance for the use of medicinal marijuana specifically as prescribed by a medical doctor. This allowance is made strictly subject to the laws of governing bodies and medical expertise:

Buddhism

In Buddhism, the Fifth Precept is frequently interpreted to mean "refrain from intoxicating drinks and drugs which lead to heedlessness", although in some direct translations, the Fifth Precept refers specifically to alcohol. Cannabis and some other psychoactive plants are specifically prescribed in the Mahākāla Tantra for medicinal purposes.Stablein WG. The Mahākālatantra: A Theory of Ritual Blessings and Tantric Medicine. Doctoral Dissertation, Columbia University. 1976. p 21-2,80,255-6,36,286,5.

Views on drugs, especially natural or herbal ones such as cannabis, vary widely among the various Buddhist sects, which can be summarized into Theravada Buddhism, Mahayana Buddhism and Vajrayana Buddhism. The Theravada tradition keeps the Fifth Precept for laypeople more seriously, as well as literally according to the words of the phrasing, i.e. "I vow to abstain from fermented drinks" (Pali: Surāmerayamajjapamādaṭṭhānā veramaṇī sikkhāpadaṃ samādiyāmi), and tends to be more anti-alcohol and anti-drug in general than the other Buddhist traditions. In Mahayana Buddhism, the (specifically Mahayana) Bodhisattva Precepts override the Vinaya Precepts (or pratimoksha vows), which it shares in common with the Theravada but emphasizes less.

The main thrust of the Bodhisattva ethical code is that anything which is beneficial for oneself and others should be adopted, while anything harmful to oneself and others should be avoided. This leaves more room for medical interpretations of cannabis. Vajrayana Buddhism is probably the most open to cannabis use, especially in the sense that the Vajrayana Precepts urge the aspirant to develop "pure view", in which one extracts the pure essence of all things through seeing their true nature of śūnyatā, including things normally seen as defiled such as sex and, as mentioned in some Tantric Buddhist texts, drugs including cannabis. Moreover herbal medicine, including some natural psychoactive drugs, is deeply linked with the Tantric Buddhist traditions of Vajrayana, in particular Tibetan Buddhism. Although the Vajrayana traditions also maintain the Vinaya and Bodhisattva Precepts, the Tantric Precepts or samaya, which reflect Vajrayana doctrine, are held to be paramount.

Thus, it would seem that in Theravada Buddhism, cannabis is mostly discouraged, in Mahayana Buddhism, cannabis is somewhat discouraged in some contexts, and in Vajrayana Buddhism, cannabis is only slightly discouraged or even encouraged in some contexts.

Moreover, in the West, Buddhism has had a strong association with psychedelic and psychoactive drugs due to the beatniks and hippies of the 1950s through 1970s. Although Buddhism does not explicitly encourage such drugs in general, Buddhist scriptures generally have little to say against any drug in particular, other than alcohol.

Generally speaking, most Buddhists (including the Dalai Lama) are accepting of medical marijuana, and the concept of using marijuana to treat specific physical and mental ailments.

Christianity

In a 2021 Pew Research Center poll, it was determined that irreligious persons were significantly more accepting of the health benefits of medical cannabis than Christians.

Catholicism Prior to assuming his position as leader of the Catholic Church, Pope Francis had spoken against recreational cannabis. He stated in 2013 in Buenos Aires: "A reduction in the spread and influence of drug addiction will not be achieved by a liberalization of drug use." The catechism of the Catholic Church states that "The use of drugs inflicts very grave damage on health and life. Their use, except on strictly therapeutic grounds, is a grave offense." However, medical marijuana for therapeutic use may be permissible.

Orthodoxy The Georgian Orthodox Church has resisted legalization of cannabis in Georgia.

Protestantism The Arkansas Baptist State Convention voted to discourage medical marijuana in 2016. In 2016, the executive director of the Florida Baptist Convention, Tommy Green, also said that congregations should be encouraged to vote against the Florida Amendment 2 (2016) which expanded legalization of medical marijuana in Florida. The National Evangelical Association of Belize opposed the 2017 decriminalization of cannabis in Belize.

The Assemblies of God USA, as well as other Pentecostal and holiness churches, have historically advocated abstinence from all alcohol, tobacco, and narcotics. Supporters of this view generally cite biblical passages enjoining respect for one's body as well as forbidding intoxication.

Other Protestant churches have endorsed the legality of medical marijuana, including the Presbyterian Church (USA), United Methodist Church, United Church of Christ, and the Episcopal Church.

The Church of Jesus Christ of Latter-day Saints

In the Church of Jesus Christ of Latter-day Saints (LDS Church), there is general prohibition against intoxicating substances as stated in its health code called the Word of Wisdom. In August 1915, the LDS Church banned the use of cannabis by its members. In 2016, the church's highest governing body (the First Presidency) urged members to oppose legalization of recreational cannabis use. The LDS Church said in 2016 it "raised no objection" to a state bill on non-psychoactive medical marijuana in Utah.

Quakerism A group of Quaker syncretists noted cannabis use could be spiritually enhancing. Quakers, however have noted a high degree of acceptance of sobriety. Anecdotes from Quakers who use cannabis suggest a positive connection between the substance and Quakerism as a whole.

Hinduism

During the Hindu festival of Holi and Maha Shivratri, people consume bhang which contains cannabis flowers. Chapter IX: Social and Religious Customs. According to one description, when the amrita (elixir of life) was produced from the churning of the ocean by the devas and the asuras as described in the Samudra manthan, Shiva created cannabis from his own body to purify the elixir (whence, for cannabis, the epithet angaja or "body-born"). Another account suggests that the cannabis plant sprang up when a drop of the elixir dropped on the ground. Thus, cannabis is used by sages due to association with elixir and Shiva.

In Hinduism, wise drinking of bhang (which contains cannabis), according to religious rites, is believed to cleanse sins, unite one with Shiva and avoid the miseries of hell in the future life. It is also believed to have medicinal benefits and is used in Ayurvedic medicine. In contrast, foolish drinking of bhang without rites is considered a sin.

Islam

The Quran does not mention cannabis. All major Sunni and Shia scholars considered it by analogy (qiyas) to be similar to khamr (intoxicants/alcoholic drink) and therefore deemed it haraam (forbidden).