That line sounds like one of those punchy, joke-style sayings rather than a quote tied to a real historical figure.
Usually it goes something like:
“A wise man never tells a woman two things: everything he knows and everything he thinks.”
It’s meant humorously, playing on the idea that oversharing—especially blunt opinions—can get you into trouble. Like most sayings in this category, it’s less about literal truth and more about wit and timing in conversation.