Not to nit-pic, but Cervantes' years were between 1547-1616.
His quote came a few thousand years AFTER Solomon said the same thing.
Proverbs 22:1 A good name is more desirable than great riches
And neither of them intended the comment to be taken literally. They were both talking about reputation. So, actually, the quote is being used out of context.