Seems to me that Socrates left nothing in writing. That would mean it was Plato quoting
Socrates.