What does Daniel 12:2 mean?
An angel speaking to Daniel (Daniel 10:1, 18–21) continues to describe what will happen in the end times: the last moments of history before God's judgment. The prior verse (Daniel 12:1) mentioned ideas often discussed in "eschatology:" the study of those last days. Among these were the great tribulation and concept of a "book" recording those who are saved.This verse uses a euphemism for death, calling it "sleep." This reflects the idea that the end of earthly life is not the end of all life. In the New Testament, Paul uses this same metaphor (1 Corinthians 15:51; 1 Thessalonians 4:15).
Another crucial point reinforced here is that all people will be resurrected into one of two fates. These are the only possible eternal fates. One is life with God, the other is the "contempt" of separation from Him (Acts 24:15; Revelation 20:12–13). Jesus also spoke of this two-sided eternal destiny during His earthly ministry (Matthew 25:46; John 5:28–29). John's vision of the ultimate judgment makes the same distinction (Revelation 20:11–15), also making mention of a "book."