Karl Marx
Contribution to the Critique of Hegel's Philosophy of Right, 1843-44
In context it is more sympathetic than its reputation: opium was a common painkiller, and Marx called religion the sigh of the oppressed in a heartless world.
Source: Wikiquote