Sayyiduna Abu Hurairah (may Allah be pleased with him) says: I heard the Messenger of Allah (peace and blessings be upon him) say: "Wine comes from these two trees: the date-palm and the grapevine."
Brief Explanation
(Hadith Explanation 2132)
Intoxicant is not confined to only these two things; in another hadith it is stated: wine is made from grapes, dates, barley, wheat, and honey.
Everything that removes the intellect falls under the ruling of intoxicant (khamr), regardless of what it is made from; this is the correct and preferred view.
Allamah Waheeduz-Zaman rahimahullah writes: The Ahl al-Hadith, Shafi’is, and the majority of scholars hold the view that wine (khamr) can be made from anything, and khamr is the name for anything that intoxicates, whether it is from grapes, dates, barley, millet, wheat, honey, figs, or apples. Then, any wine in which there is intoxication is forbidden, whether in small or large quantity, and many authentic ahadith support this position.
In the narration of Muslim it is stated: Every intoxicant is khamr, and every khamr is forbidden. And at the time when the prohibition of khamr was revealed, it was being made from five things: grapes, dates, wheat, barley, and honey.
Khamr is that which covers (veils) the intellect.
In one narration it is mentioned that when the prohibition of khamr was revealed, wine made from grapes was very rare, and most of the wine was made from fresh and dry dates.
The conclusion is that in this era, no one can say that wine made from things other than grapes is permissible to drink in such an amount that does not intoxicate. Although there were some people in the early period to whom the ahadith had not yet reached who held this view, they were excused. But now that these ahadith have become well-known and widespread, it is no longer permissible for anyone to say otherwise, and the statement attributed to Abu Hanifah rahimahullah—that wine is specifically from grapes, and that it is permissible to drink wine made from other things as long as it does not intoxicate—has become invalid. Imam Muhammad rahimahullah opposed this statement of Abu Hanifah rahimahullah when the ahadith reached him, and the Hanafi jurists have also given fatwa according to the statement of Imam Muhammad rahimahullah.
[ابن ماجه ، شرح حديث : 3379]