Smoking was reported to have dated back to as early as 5000bc in the Americas for shamanistic rituals, its consumption, cultivation, and trading became quickly widespread with the
Smoking was not really done directly until the advent of tobacco in the 16th century, it was believed that pipes have been used to smoke which dated as far back as the 10th to 12th centuries. In 1929, Fritz Lickint of Dresden, Germany, published formal statistical evidence of a lung cancer-tobacco link which led to a strong anti-smoking movement in Nazi Germany. Smoking has been practiced in various forms since ancient times. Tobacco and other hallucinogenic drugs have been smoked during rituals and originated in the Peruvian and Ecudorian Andes. The burnt these drugs as part of religious rituals, however, it was not directly inhaled. However, it is unknown how much cannabis resin these incenses would have contained and if it came from these hallucinogenic drugs or psychoactive types or possibly, opium. These drugs were employed as a cure for the poison of the limbs by ancient Assyrians which were presumed to mean Arthritis.
For more information on this topic head to Wikipedia and read extensively.