When the mummy of Pharaoh Ramesses II was uncovered and examined back in 1881, traces of cannabis in the remains was the last thing anyone was expecting, but it was there. Since then, a lot of the uncovered mummies have shown similar traces of the herb in their systems, confirming the suspicion that cannabis was indeed a part of the regular culture in ancient Egypt.
In ancient Egypt, cannabis was used for medicinal, religious, and cultural purposes.
Seshat, the goddess of wisdom, was often depicted with a leaf of the cannabis plant above her head in paintings from thousands of years ago. Bastet, the feline goddess of war, was also related to the use of cannabis in the region, but more in terms of witchcraft. Evidence also suggests that worshippers may have consumed marijuana in one form or the other during certain religious festivities and rituals.
Sources: Ancient Origins (Robert Brusco)