You are probably thinking of Socrates. To be exact, he said that the wiser man is the one who knows he knows nothing rather than the person who thinks he knows something (but does not). However, the underlying idea is the same. Socrates is also famous for developing a method of practicing philosophy that consists only of questions without answers (the Socratic Method).