Sirach (Ecclesiasticus) 6:37

Let thy mind be upon the ordinances of the Lord, and meditate continually in his commandments: he shall establish thine heart, and give thee wisdom at thine own desire.

Brenton's English Septuagint