The connection is as follows: may grace and peace be multiplied to you, since all things pertaining to life and godliness, through the knowledge of God and our Lord Jesus, have been granted to you by His divine power—that grace—for the knowledge of glory and virtue, for which the greatest promises have been granted, so that you, having escaped from the worldly corruption that comes through lust, might become partakers of the divine nature. Otherwise stated: the exposition is drawn out, but the thought is this: having received countless blessings by the power of Christ, we can both become parta...kers of the divine nature and attain to life and godliness; therefore we must live in such a way as to add virtue to faith and through virtue to advance in godliness, until we reach the most perfect good, which is love. And we became partakers of the divine nature through the appearing of the Lord and God, Who united the firstfruits of our nature in Himself and through His assumption sanctified them; and if the firstfruits are holy, then the whole is holy.
Source: Commentary on 2 Peter