King Solomon and David had discovered, after all their kingly experiences of the world and all its glory, that everything under the sun is vanity of vanities. This vanity was caused by Satan's injecting himself into man as sin and since then, the entire creation is subject to vanity. Human life at its best is also under the slavery of corruption. There is no exception even to the believers. That being the case, is there any hope left at all to the fallen mankind and the corrupted creation? Yes. Because God also created man with a spirit and put eternity in his heart.
He has made everything beautiful in its own time; also He has put eternity in their heart, yet so that man does not find out what God has done from the beginning to the end. Ecclesiastes 3:11
The eternity God has put in man's heart is to seek and long for God Himself. Not knowing God's desire for man to seek God is due to man's ignorance that issues in seeking for the temporal things to satisfy the eternal longing that only God as the eternal One can satisfy. This is an escape route from vanity to the reality that is eternal.
This therefore I say and testify in the Lord, that you no longer walk as the Gentiles also walk in the vanity of their mind. Ephesians 4:17
But you did not so learn Christ, If indeed you have heard Him and have been taught in Him as the reality is in Jesus. Ephesians 4:20-21
And we know that the Son of God has come and has given us an understanding that we might know Him who is true; and we are in Him who is true, in His Son Jesus Christ. This is the true God and eternal life. 1 John 5:20
Let no corrupt word proceed out of your mouth, but only that which is good for building up, according to the need, that it may give grace to those who hear. Ephesians 4:29
For the anxious watching of the creation eagerly awaits the revelation of the sons of God. For the creation was made subject to vanity, not of its own will, but because of Him who subjected it, In hope that the creation itself will also be freed from the slavery of corruption into the freedom of the glory of the children of God. For we know that the whole creation groans together and travails in pain together until now. And not only so, but we ourselves also, who have the firstfruits of the Spirit, even we ourselves groan in ourselves, eagerly awaiting sonship, the redemption of our body. Romans 8:19-23Today, we can escape from vanity to reality by enjoying Christ as grace. In the process, God will gain the sonship in our souls and ultimately, one day, the full sonship will be gained, fully brought into reality.