Ecclesiastes 7:12

10 Do not say, “Why were the old days better than these?” For it is unwise of you to ask about this.

11 Wisdom, like an inheritance, is good, and it benefits those who see the sun.

For wisdom, like money, is a shelter, and the advantage of knowledge is that wisdom preserves the life of its owner.

13 Consider the work of God: Who can straighten what He has bent?

14 In the day of prosperity, be joyful, but in the day of adversity, consider this: God has made one of these along with the other, so that a man cannot discover anything that will come after him.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
For wisdom, like money, is a shelter, and the advantage of knowledge is that wisdom preserves the life of its owner.
KJV
For wisdom is a defence, and money is a defence: but the excellency of knowledge is, that wisdom giveth life to them that have it.
WEB
For wisdom is a defense, even as money is a defense; but the excellency of knowledge is that wisdom preserves the life of him who has it.
ASV
For wisdom is a defence, even as money is a defence; but the excellency of knowledge is, that wisdom preserveth the life of him that hath it.
DARBY
For wisdom is a defence [as] money is a defence; but the excellency of knowledge is, [that] wisdom maketh them that possess it to live.
BLB
For in the shadow of wisdom [is as] in the shadow of silver, and the advantage of knowledge [is] that wisdom keeps alive her owners.
ÅB
for å være i visdommens skygge er som å være i skyggen av rikdom, men kunnskapens fortrinn er at visdommen holder sin eier i live.
OTB
Visdom er en beskyttelse, som penger er en beskyttelse, men fordelen med kunnskap er at visdom bevarer livet til den som har den.
B1930
for å være i visdommens skygge er som å være i skyggen av rikdom, men kunnskapens fortrin er at visdommen holder sin eier i live.

Study notes (Tyndale)

Original text and word study

Cross references