This passage is an OT prophecy of the great tribulation. To comfort God’s people the prophecy speaks of Michael who protects God’s people, the final resurrection and judgment, the glorification of the people of God and the certainty of the prophecy.
Read Daniel 12:1-4