Publilius Syrus said this quote

Many consult their reputation, but few their conscience.