As Franz Rosenthal aptly put it (quoting, IIRC, Ignaz Goldziher), Islamic medieval literature was a constant rebellion against dominant religious norms. While there is some exaggeration in this, it is interesting to note how ubiquitous praise of wine was in Arabic and Persian literature,
despite the overwhelming religious consensus on strict prohibition that
@John7755 يوحنا describes. (The other prominent topic of literary rebellion was of course extramarital, often homoerotic, love, which is equally a grave sin in Islamic doctrine; and it is very common to see wine and illicit love celebrated together in literature). This rebellion is partly a codified trope, so I suspect that actual wine consuption, while clearly significant, was somewhat less widespread that literary wine-praising would suggest if taken at face-value.