John Gill's Exposition of the Whole Bible
Psalms 102:25
Of old hast thou laid the foundation of the earth,.... The lower part of the creation, the Lord's footstool, called the earth beneath: this has its foundation; though what it is cannot be well said, it cannot be searched out; it is sometimes said to be founded upon the waters, and yet so as not to be removed for ever,
Jeremiah 31:37, this shows the wisdom of God, as a wise master builder, and the stability of the earth; and is a proof of the deity of Christ, to whom these words belong: this is said to be done "of old", or "at" or "in the beginning", as Jarchi and the Targum; and so in Hebrews 1:10, where they are applied to the Messiah, the Son of God; and this, as it proves the eternity of Christ, who must be in the beginning, and before all things, so it confutes the notion of the eternity of the earth, received by some philosophers: besides, the words may be rendered, "before" g "thou foundest the earth"; and so refers to the preceding, "thy years", c. were before the earth was that is, from eternity, and so fully express the eternal existence of Christ:
and the heavens are the work of thy hands; these are the airy and starry heavens, and the heaven of heavens; which are creatures, and not to be worshipped, made by Christ himself, and are expressive of his power, wisdom, and glory.
g לפנים "antea", Pagninus, Montanus, Gejerus.