Oscar Wilde said this quote

The reason we all like to think so well of others is that we are all afraid for ourselves. The basis of optimism is sheer terror.