يَا أَيُّهَا الَّذِينَ آمَنُوا إِنَّمَا الْخَمْرُ وَالْمَيْسِرُ وَالْأَنصَابُ وَالْأَزْلَامُ رِجْسٌ مِّنْ عَمَلِ الشَّيْطَانِ فَاجْتَنِبُوهُ لَعَلَّكُمْ تُفْلِحُونَ
“O believers! Intoxicants, gambling, idols, and drawing lots for decisions, are all evil of satan's handiwork. So shun them so you may be successful”
The final, complete prohibition of alcohol (phase 3), revealed during the siege of Banu Nadir.
Quran 5:90 (khamr prohibition, already-revealed) was quoted back to Thaqif when they asked to keep drinking khamr.