1 Corinthians 15:52
in a flash, in the twinkling of an eye, at the last trumpet. For the trumpet will sound, the dead will be raised imperishable, and we will be changed.
“And many of them that sleep in the dust of the earth shall awake, some to everlasting life, and some to shame and everlasting contempt” (Daniel 12:2).
Marvel not at this: for the hour comes, in which all that are in the tombs shall hear his voice, and shall come forth; they that have done good, unto the resurrection of life; and they that have done evil, unto the resurrection of judgment [damnation — KJV] (John 5:28-29).
But this I confess unto you, that after the Way which they call a sect, so serve I the God of our fathers, believing all things which are according to the law, and which are written in the prophets; having hope toward God, which these also themselves look for, that there shall be a resurrection both of the just and unjust (Acts 24:14-15).
In short, the wicked get the same bodies as the righteous, thus their punishment is eternal
Matthew 25:46 (King James Version)
And these shall go away into everlasting punishment: but the righteous into life eternal.
If your hand or your foot causes you to sin, cut it off and throw it away. It is better for you to enter life maimed or crippled than to have two hands or two feet and be thrown into eternal fire.
His winnowing fork is in his hand to clear his threshing floor and to gather the wheat into his barn, but he will burn up the chaff with unquenchable fire."