Wisdom 8:21

21 Nevertheless, when I perceived that I could not otherwise obtain her, except God gave her me; and that was a point of wisdom also to know whose gift she was; I prayed unto the Lord, and besought him, and with my whole heart I said,

Wisdom 8:21 In-Context

19 For I was a witty child, and had a good spirit.
20 Yea rather, being good, I came into a body undefiled.
21 Nevertheless, when I perceived that I could not otherwise obtain her, except God gave her me; and that was a point of wisdom also to know whose gift she was; I prayed unto the Lord, and besought him, and with my whole heart I said,

The Brenton translation of the Septuagint is in the public domain.