I mean it wasn't just a line in the movie, and he doesn't say it about himself. He read it in his profile from the avengers program so yes he physically said the words, but it is an objective assessment of him as a human being by the other characters in the universe.