Surah An-Nahl, ayah 67

16:67

وَمِن ثَمَرَٰتِ ٱلنَّخِيلِ وَٱلۡأَعۡنَٰبِ تَتَّخِذُونَ مِنۡهُ سَكَرٗا وَرِزۡقًا حَسَنًاۚ إِنَّ فِي ذَٰلِكَ لَأٓيَةٗ لِّقَوۡمٖ يَعۡقِلُونَ ٦٧

Wamin thamarātin-nakhīli wal-a'nābi tattakhidhūna minhu sakaran warizqan hasanan inna fī dhālika la'āyatal liqawmin ya'qilūn

And from the fruits of the palm trees and grapevines you take intoxicant and good provision.707 Indeed in that is a sign for a people who reason.

Footnotes

707 This verse was revealed before the prohibition of intoxicants. It alludes to the fact that there are both evil and good possibilities in certain things.