Confucius said this quote

He who is concerned only with the purity of his own life ruins the great human relations.