Confucius said this quote

When you have faults, do not fear to abandon them.