Alfred Adler said this quote

Meanings are not determined by situations, but we determine ourselves by the meanings we give to situations.