Cannabis was used medicinally across the Arabic world in Roman times, applied to a wide variety of ailments (from migraines to syphilis) and as an analgesic and anesthetic.
The Islamic physician Rhazès prescribed it widely but Arab physician Ibn Wahshiyah, warned of the potential effects of hashish which he wrote was a lethal poison. (Booth, 2005)