Friedrich Nietzsche said this quote

It is nobler to declare oneself wrong than to insist on being right --especially when one is right.