Allah sent down the verse wherein He prohibited alcohol at a time when there was no other (intoxicant) drink in Madīnah except that prepared from dates
Authentic hadithعن أنس بن مالك رضي الله عنه قال: «لقد أَنْزَلَ الله الآية التي حَرَّمَ الله فيها الخمر، وما بالمدينة شَرَابٌ يُشْرَبُ إلا من تَمْرٍ».
Anas ibn Mālik (may Allah be pleased with him) reported: Allah sent down the verse wherein He prohibited alcohol at a time when there was no other (intoxicant) drink in Madīnah except that prepared from dates.
Explanation
In this Hadīth, Anas (may Allah be pleased with him) says that when Allah, the Almighty, revealed the verse that made alcohol unlawful to drink, there was no drink in Madīnah from which alcohol was produced except dates. This indicates that alcohol is prohibited because it causes intoxication, not because of the substance it is made from.
Source · Narrated by Muslim
From the Hadith Encyclopedia (hadeethenc.com).