Thucydides said this quote

Self-control is the chief element in self-respect, and self-respect is the chief element in courage.