William Hazlitt said this quote

The perceiving our own weaknesses enables us to give others excellent advice, but it does not teach us to to reform ourselves.