Alexander Pope said this quote

A man should never be ashamed to own that he has been in the wrong, which is but saying in other words that he is wiser today than he was yesterday.