Jean-Jacques Rousseau said this quote

Virtue is a state of war, and to live in it we have always to combat with ourselves.