Short answer
Yes. Cannabis (weed, marijuana, hashish) is haram in all four schools because it clouds the mind like alcohol, and being legal where you live does not change that. Kratom is haram in amounts that intoxicate or create dependency. Medicines from cannabis, and CBD with no intoxicating effect, are a separate question to ask a mufti and your doctor.
Eating or smoking hashish, opium and similar drugs for pleasure is haram. Unlike wine, cannabis is not impure, and a small amount used in medicine for a real need, without intoxication, is allowed.
The four schools agree on this.
Explanation
The four schools agree that drugs which intoxicate are haram. The Prophet ﷺ said every intoxicant is khamr, and the scholars applied this to hashish, opium and the like as soon as they appeared. The Hanafi texts say plainly that eating hashish and opium is forbidden because it ruins the mind.
Legal is not the same as halal. Recreational cannabis is now legal in many US states and in Canada, but Islamic rulings do not follow the law of the land. Edibles, vapes and pre-rolls are all the same ruling.
Kratom is made from the leaves of a Southeast Asian tree and sold in many US shops. At low doses it acts as a stimulant, at higher doses it has opioid-like effects, and it can cause dependency. Taken to get high, or in a way that leads to addiction, it falls under the same ruling as other intoxicants and harmful substances. Using it to self-treat pain or withdrawal is a medical decision: speak to a doctor first.
Medical use and CBD: the Hanafi texts allow a small, non-intoxicating amount of such substances as medicine for a real need. Prescribed cannabis medicines, and CBD oil with no THC (the intoxicating part), are therefore treated differently from recreational use by many scholars. Because the details depend on the product and your condition, ask a mufti and your doctor.
If you are struggling with addiction, it is not a reason to stay away from Allah. Tawbah is open, and seeking treatment is part of it. See salat al-tawbah.
Ask a mufti about your own case. This answer explains the general ruling. When the details of your situation matter, as they do here, ask a qualified mufti and give them the full facts. Where to ask a scholar.
The evidence
Quran, Surah Al-Maaida 5:90
يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوٓا۟ إِنَّمَا ٱلْخَمْرُ وَٱلْمَيْسِرُ وَٱلْأَنصَابُ وَٱلْأَزْلَٰمُ رِجْسٌۭ مِّنْ عَمَلِ ٱلشَّيْطَٰنِ فَٱجْتَنِبُوهُ لَعَلَّكُمْ تُفْلِحُونَ ﴿٩٠﴾
O you who have believed, indeed, intoxicants, gambling, [sacrificing on] stone alters [to other than Allah], and divining arrows are but defilement from the work of Satan, so avoid it that you may be successful.
Intoxicants of every kind are to be avoided.
Quran, Surah Al-Baqara 2:195
وَأَنفِقُوا۟ فِى سَبِيلِ ٱللَّهِ وَلَا تُلْقُوا۟ بِأَيْدِيكُمْ إِلَى ٱلتَّهْلُكَةِ ۛ وَأَحْسِنُوٓا۟ ۛ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُحْسِنِينَ ﴿١٩٥﴾
And spend in the way of Allah and do not throw [yourselves] with your [own] hands into destruction [by refraining]. And do good; indeed, Allah loves the doers of good.
Self-harm through drugs is forbidden.
Sahih Muslim 2003
Sahih... كل مسكر خمر وكل مسكر حرام ...
"Every intoxicant is khamr, and every intoxicant is forbidden."
Covers every intoxicating substance, not only drinks.
Sunan Abi Dawud 3681
Graded hasan sahih... ما أسكر كثيره فقليله حرام ...
"Whatever intoxicates in a large amount, a small amount of it is forbidden."
A small recreational dose is still haram.
Where the ruling is recorded
- al-Durr al-Mukhtar, Kitab al-Ashriba. Eating hashish, banj and opium is haram, though below wine in severity.
- Radd al-Muhtar (Ibn Abidin), Kitab al-Ashriba. Medical use of such substances in small amounts.
This answer is pending review by the scholars on our team. Quran translation by Sahih International. Hadith Arabic from the standard editions of the six books and the Muwatta, with gradings as recorded there; the English is our own rendering. Spotted a mistake? Tell us.