Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:17358Abū ʿAbdullāh al-Ḥāfiẓ > Abū Ṣāliḥ / Khalaf al-Khiyām > Ibrāhīm b. Maʿqil > Muḥammad b. Ismāʿīl > Isḥāq b. Ibrāhīm > Muḥammad b. Bishr > ʿAbd al-ʿAzīz b. ʿUmar b. ʿAbd al-ʿAzīz > Nāfiʿ > Ibn ʿUmar

(The Verse of) prohibiting alcoholic drinks was revealed when there were in Medina five kinds of (alcoholic) drinks none of which was produced from grapes. (Using translation from Bukhārī 4616)   

البيهقي:١٧٣٥٨أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أَخْبَرَنِي أَبُو صَالِحٍ يَعْنِي خَلَفَ الْخِيَامَ ثنا إِبْرَاهِيمُ بْنُ مَعْقِلٍ ثنا مُحَمَّدُ بْنُ إِسْمَاعِيلَ حَدَّثَنِي إِسْحَاقُ بْنُ إِبْرَاهِيمَ أنبأ مُحَمَّدُ بْنُ بِشْرٍ ثنا عَبْدُ الْعَزِيزِ بْنُ عُمَرَ بْنِ عَبْدِ الْعَزِيزِ أَخْبَرَنِي نَافِعٌ عَنِ ابْنِ عُمَرَ قَالَ

نَزَلَ تَحْرِيمُ الْخَمْرِ وَإِنَّ بِالْمَدِينَةِ يَوْمَئِذٍ لَخَمْسَةُ أَشْرِبَةٍ مَا فِيهَا شَرَابُ الْعِنَبِ  

أَخْرَجَهُ الْبُخَارِيُّ فِي الصَّحِيحِ هَكَذَا

See similar narrations below:

Collected by Bukhārī
bukhari:4616Isḥāq b. Ibrāhīm > Muḥammad b. Bishr > ʿAbd al-ʿAzīz b. ʿUmar b. ʿAbd al-ʿAzīz > Nāfiʿ > Ibn ʿUmar

(The Verse of) prohibiting alcoholic drinks was revealed when there were in Medina five kinds of (alcoholic) drinks none of which was produced from grapes.  

البخاري:٤٦١٦حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ أَخْبَرَنَا مُحَمَّدُ بْنُ بِشْرٍ حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ عُمَرَ بْنِ عَبْدِ الْعَزِيزِ قَالَ حَدَّثَنِي نَافِعٌ عَنِ ابْنِ عُمَرَ ؓ قَالَ

نَزَلَ تَحْرِيمُ الْخَمْرِ وَإِنَّ فِي الْمَدِينَةِ يَوْمَئِذٍ لَخَمْسَةَ أَشْرِبَةٍ مَا فِيهَا شَرَابُ الْعِنَبِ