عَنْ أَبِي هُرَيْرَةَ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ:" الْخَمْرُ مِنْ هَاتَيْنِ الشَّجرتينِ: النخلةِ والعِنَبَةِ ". رَوَاهُ مُسلم
Translation
Anas said

Wine was forbidden when it was forbidden (i.e. by the Qur’an), but we get only a little of the wine from grapes, most of our wine being from unripe dates and dry dates. Bukhari transmitted it.