Apparently cannabis was important for religious ceremonies from Egypt to the Levant.
There's a guy named Reverend Danny Nemu who talks about the psychedelic aspect of ancient Israelite religion, which he says included cannabis and many other substances. Besides cannabis, the priests also inhaled the smoke of Frankincense and Myrrh, both of which are produce psychoactive effects. It kind of helps explain why those spices were more valuable than gold. According to Nemu the veil of the temple was to seal the smoke inside the holy of holies.
Nemu believes that anointing the priests with a specially prepared oil (shemen ha-mishchah) was just as important as the inhaling, and the two together was a powerful one-two punch. The mischchah is the source of the words massage and Messiah (anointed one), so this was probably not a dribbling of oil on the head but a full body rubdown of mind-altering substances that were absorbed though the skin.
The old testament gives the formula. Besides olive and cannabis oils the shemen ha-mishchah contains a chemically complex mixture of other substances in a very interesting combination. Some of those substances are psychoactive and some are enzymes inhibitors that make the other substances active. It would work similarly to ayahuasca, which is made from two plants. When ingested individually they have no effect, but when used together they produce one of the most potent psychedelics known.
Some statements in the Old Testament might make more sense when look at them in that light. 1 Samuel 13:16 "Then Samuel took the horn of oil, and anointed him in the midst of his brethren: and the Spirit of the LORD came upon David from that day forward."
Here are a couple of places where Nemu talks about it. He has also written several books:
http://nemusend.co.uk/
https://thethirdwave.co/drugs-in-the-bible-transcript/
“The easy confidence with which I know another man's religion is folly teaches me to suspect that my own is also.” -Mark Twain
Jesus: "The Kingdom of God is within you." The Buddha: "Be your own light."