The Wisdom of Jesus the Son of Sirach, or Ecclesiasticus

Chapter 39
1Not so he who has applied his soul and meditates in the law of the Most High. He will seek out the wisdom of all the ancients and will be occupied with prophecies.