The Sumerians are said to have cultivated and harvested the opium poppy (Papaver somniferum) in lower Mesopotamia as early as 3400 BC, though this has been disputed. The most ancient testimony concerning the opium poppy found to date was inscribed in cuneiform script on a small white clay tablet at the end of the third millennium BC. This tablet was discovered in 1954 during excavations at Nippur, and is currently kept at the University of Pennsylvania Museum of Archaeology and Anthropology. Deciphered by Samuel Noah Kramer and Martin Leve, it is considered to be the most ancient pharmacopoeia in existence. Some Sumerian tablets of this era have an ideogram inscribed upon them, "hul gil", which translates to "plant of joy", believed by some authors to refer to opium. The term gil is still used for opium in certain parts of the world. The Sumerian goddess Nidaba is often depicted with poppies growing out of her shoulders. About 2225 BC, the Sumerian territory became a part of the Babylonian empire. Knowledge and use of the opium poppy and its euphoric effects thus passed to the Babylonians, who expanded their empire eastwards to Persia and westwards to Egypt, thereby extending its range to these civilizations. British archaeologist and cuneiformist Reginald Campbell Thompson writes that opium was known to the Assyrians in the 7th century BC. The term "Arat Pa Pa" occurs in the Assyrian Herbal, a collection of inscribed Assyrian tablets dated to c. 650 BC. According to Thompson, this term is the Assyrian name for the juice of the poppy and it may be the etymological origin of the Latin "papaver".
The ancient Egyptians had some surgical instruments, as well as crude analgesics and sedatives, including possibly an extract prepared from the mandrake fruit. The use of preparations similar to opium in surgery is recorded in the Ebers Papyrus, an Egyptian medical papyrus written in the Eighteenth Dynasty. However, it is questionable whether opium itself was known in ancient Egypt. The Greek gods Hypnos (Sleep), Nyx (Night), and Thanatos (Death) were often depicted holding poppies.
Prior to the introduction of opium to ancient India and China, these civilizations pioneered the use of cannabis incense and aconitum. c. 400 BC, the Sushruta Samhita (a text from the Indian subcontinent on Ayurvedic medicine and surgery) advocates the use of wine with incense of cannabis for anesthesia. By the 8th century AD, Arab traders had brought opium to India and China.