Orson Scott Card said this quote

So from then on, he looked at all his choices and said, What would a good person do, and then did it. But he has now learned something very important about human nature. If you spend your whole life pretending to be good, then you are indistinguishable from a good person. Relentless hypocrisy eventually becomes the truth.