George Bernard Shaw said this quote

The only way to avoid being miserable is not to have enough leisure to wonder whether you are happy or not.