Daniel 12:2,3 (KJV)
2 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.
3 And they that be wise shall shine as the brightness of the firmament; and they that turn many to righteousness as the stars for ever and ever.
The Resurrection Of The Just And Unjust
The wicked and the righteous shall both be resurrected. But only those in Christ shall be saved, while others will be punished.