Seneca said this quote

Those who wish their virtue to be advertised are not striving for virtue but for renown. Are you not willing to be just without being renowned? Nay, indeed you must often be just and be at the same time disgraced. And then, if you are wise, let ill repute, well won, be a delight. Farewell.