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.
bukhari:5579al-Ḥasan b. Ṣabbāḥ > Muḥammad b. Sābiq > Mālik > Ibn Mighwal > Nāfiʿ > Ibn ʿUmar

"Alcoholic drinks were prohibited (by Allah) when there was nothing of it (special kind of wine) in Medina.  

البخاري:٥٥٧٩حَدَّثَنَا الْحَسَنُ بْنُ صَبَّاحٍ حَدَّثَنَا مُحَمَّدُ بْنُ سَابِقٍ حَدَّثَنَا مَالِكٌ هُوَ ابْنُ مِغْوَلٍ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ ؓ قَالَ

لَقَدْ حُرِّمَتِ الْخَمْرُ وَمَا بِالْمَدِينَةِ مِنْهَا شَىْءٌ