Indian scripture

Wisdom leads to joy

Pleasure is one thing; wisdom is another.  The first leads to sorrow, though pleasant at the time.  The latter, though at first unpleasant, leads to lasting joy.