I used to always say that to myself in my native language. Seems to be a pretty common saying it seems. In this days I some times still say it. But I don't think I believe in it anymore.
Some say it's a quote by Oscar Wilde, some say its John Lennon others say it comes from brazilian Author Fernando Sabino and because Paulo Coelho is the only brazilian author people remember it's attributed to him too.