A wise man gets more out of his enemies than a fool gets out of his friends.
What matters is not who stands around you but how well you use what they give you. An enemy notices your faults, pushes you to sharpen your arguments, and forces you to be careful. A wise person treats all of that as free instruction. A fool, by contrast, can be surrounded by affection and still learn nothing, because he mistakes flattery for truth and comfort for support.
The thought fits Baltasar Gracián, the seventeenth-century Spanish Jesuit known for his collection of maxims on prudence and worldly wisdom. He saw life as a field that demands judgment, self-command, and a clear eye for people as they are. For him, wisdom lay in turning every circumstance, even a hostile one, to your advantage. The line is widely quoted in English translation, so the exact wording may differ from the original Spanish.
Today, imagine a colleague who criticizes your work harshly in meetings. You could write him off, or you could ask which of his points are fair. Even if his tone is unkind, you may find a weak assumption in your plan and fix it before it costs you more.