[Daniel 12:1-2 NKJV] 1 "At that time Michael shall stand up, The great prince who stands [watch] over the sons of your people; And there shall be a time of trouble, Such as never was since there was a nation, [Even] to that time. And at that time your people shall be delivered, Every one who is found written in the book. 2 And many of those who sleep in the dust of the earth shall awake, Some to everlasting life, Some to shame [and] everlasting contempt.
Who are those who awake to shame and everlasting contempt? We know the wicked are not resurrected until the judgment at the great white throne (Rev 20:11-15).