Viktor E. Frankl said this quote

When we are no longer able to change a situation - just think of an incurable disease such as an inoperable cancer - we are challenged to change ourselves.