Daniel 12:2
1 “At that time Michael, the great prince who watches over your people, will arise. There will be a time of distress unlike any other from the nation’s beginning up to that time. But at that time your own people, all those whose names are found written in the book, will escape. 2 Many of those who sleep in the dusty ground will awake—some to everlasting life, and others to shame and everlasting abhorrence. 3 But the wise will shine like the brightness of the heavenly expanse. And those bringing many to righteousness will be like the stars forever and ever. 4 “But you, Daniel, close up these words and seal the book until the time of the end. Many will dash about, and knowledge will increase.”
Matthew 25:46
44 Then they too will answer, ‘Lord, when did we see you hungry or thirsty or a stranger or naked or sick or in prison, and did not give you whatever you needed?’ 45 Then he will answer them, ‘I tell you the truth, just as you did not do it for one of the least of these, you did not do it for me.’ 46 And these will depart into eternal punishment, but the righteous into eternal life.”
Notes and References
"... Although Daniel is not the most influential from the Hebrew Bible upon Matthew, it plays a decisive role in key eschatological facets of the first gospel. The judgment upon the wicked (Matt 13:42, 50; Dan 3:6) and the deliverance of the righteous unto eternal life (Matt 25:46; Dan 12:2) are cast in Danielic terms. So are Matthew’s anticipation of “desolating sacrilege” and “great tribulation”. Matthew clearly identifies the Danielic “son of man” with Jesus, who will “sit on his glorious throne” in the age to come and come “on the clouds of heaven with power and great glory” to gather his elect. εatthew’s Jesus seems to lay claim to the authority given to Daniel’s son of man, and his death precedes the eschatological resurrection anticipated in Daniel (12:2; Matt 27:52) ..."
Gurtner, Daniel M. "Danielic Influence at the Intersection of Matthew and the Dead Sea Scrolls" in Anders Runesson and Daniel M. Gurtner, Ed., Matthew Within Judaism: Israel and the Nations in the First Gospel (pp. 1-24) Society of Biblical Literature, 2019