Then when he says "in a flame of fire," he treats of both, namely, the punishment of the wicked and the reward of the good; but he shows the harshness, justice, and eternity of the punishment of the wicked.
He says, therefore, "giving vengeance," i.e., judging those who are to be punished "in a flame of fire," consuming the face of the earth, enveloping the condemned, and driving them away forever. "Fire goes before him" (Ps 96:3).
And the punishment will be just on account of two kinds of guilt, namely the guilt of unbelief and the guilt of an evil life. With regard to the first he says, "w...ho do not know," i.e., who do not wish to know, "God." "We do not want knowledge of your ways" (Job 21:14). "The one who does not know will not be known" (1 Cor 14:38).
With regard to the second, he says "who do not obey the Gospel of our Lord Jesus Christ." "Not all obey the Gospel" (Rom 10:16). Disobedience is so great a sin that death entered the world through it (Rom 5:19).
Source: Commentary on 2 Thessalonians