Ecclesiastes 7:11-14 (ESV)
11 Wisdom is good with an inheritance,
an advantage to those who see the sun.
12 For the protection of wisdom is like the protection of money,
and the advantage of knowledge is that wisdom preserves the life of him who has it.
13 Consider the work of God:
who can make straight what he has made crooked?
14 In the day of prosperity be joyful, and in the day of adversity consider: God has made the one as well as the other, so that man may not find out anything that will be after him.