Jiddu Krishnamurti said this quote

So if you understand that where there is a search for pleasure there must be pain, live that way if you want to, but don't just slip into it. If you want to end pleasure, though, which is to end pain, you must be totally attentive to the whole structure of pleasure - not cut it out as monks and sannyasis do, never looking at a woman because they think it is a sin and thereby destroying the vitality of their understanding - but seeing the whole meaning and significance of pleasure. Then you will have tremendous joy in life. You cannot think about joy. Joy is an immediate thing and by thinking about it, you turn it into pleasure. Living in the present is the instant perception of beauty and the great delight in it without seeking pleasure from it.