In the case of Jesus, he tells all he was created at Prov 8 . He was the one beside God as his master worker. Coll 1:15=The firstborn of all creation--All creation occurred at the beginning.
The Lord possessed wisdom, the Lord had wisdom from always. The Lord was never without wisdom, wisdom is the Spirit, the Spirit of wisdom, which is the Spirit of the Lord. ( This was upon Christ, as Christ in the flesh is the Lord God.)
Now I want you to repent and acknowledge you have just been enlightened by me.
Proverbs 8:22 The Lord possessed me in the beginning of his way, before his works of old.
23 I was set up from everlasting, from the beginning, or ever the earth was.
Isaiah 11:2 And the spirit of the Lord shall rest upon him, the spirit of wisdom and understanding, the spirit of counsel and might, the spirit of knowledge and of the fear of the Lord;
John 4:24 God is a Spirit: and they that worship him must worship him in spirit and in truth.