Ecclesiastes 2:3

I decided in my heart to withdraw my flesh from wine, so that I might bring my mind to wisdom, and turn away from foolishness, until I see what is useful for the sons of men, and what they ought to do under the sun, during the number of the days of their life

Other versions

King James Version

I sought in mine heart to give myself unto wine, yet acquainting mine heart with wisdom; and to lay hold on folly, till I might see what was that good for the sons of men, which they should do under the heaven all the days of their life.

English Standard Version

I searched with my heart how to cheer my body with wine--my heart still guiding me with wisdom--and how to lay hold on folly, till I might see what was good for the children of man to do under heaven during the few days of their life.

New International Version

I tried cheering myself with wine, and embracing folly-my mind still guiding me with wisdom. I wanted to see what was worthwhile for men to do under heaven during the few days of their lives.