Epictetus said this quote

It is not so much what happens to you as how you think about what happens. Epictetus