Daniel 1 and Daniel 12 belong to very different contexts.
Daniel 1 tells of the arrival of Daniel and his companions in the Babylonian world.
Daniel 12 belongs to the last great revelation received by the prophet.
Yet bringing them together reveals a particularly significant progression.
At the beginning of the book, Daniel loses his country, his way of life, and probably a large part of the future as he might have imagined it.
At the end, he receives this promise:
“And you, go your way to the end; you will rest, and you will stand in your allotted place at the end of the days” (Daniel 12.13).
Between these two texts almost an entire life unfolds.