Aristophanes said this quote

A man may learn wisdom even from a foe.