Did God set grapes a-growing, do you think,
And at the same time make it sin to drink?
Give thanks to Him who foreordained it thus —
Surely He loves to hear the glasses clink!Omar Khayyám (1048-1123) Persian poet, mathematician, philosopher, astronomer [عمر خیام]
Rubáiyát [رباعیات] [tr. Le Gallienne (1897), # 91]
(Source)
Given LeGallienne's paraphrasing, I am unable to align this with an original quatrain or other translations.