Buddha Bronze SeatedIn the Dhammapada, the collected sayings of the Buddha, it says:

The fool who knows he is a fool is that much wiser.  

The fool who thinks he is wise is a fool indeed.

This is quite comparable to Socrates, who argued in front of the Athenian assembly that he was, as the Oracle of Apollo said, the wisest man in Athens because he was aware of how little he knew, while others thought they knew a great deal but knew very little, like himself.