Sayyiduna Ibn Umar (may Allah be pleased with them both) says: Wine was made unlawful when there was none of it in Madinah, meaning: there was no grape wine in Madinah when it was made unlawful.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17357