Islam has a rich history documenting the use of cannabis in the form of Hashish from the 11th century. The current prohibition of cannabis is based on yet another ideological standpoint, and over the centuries this standpoint has changed from ruler to ruler.
Never has it been based on science of course.
Hashish_Islam_9-18th