Publilius Syrus said this quote

From the errors of others, a wise man corrects his own.