It’s amazing what a prayer can release! Daniel’s prayer is heard in heaven and he finds out that he is “greatly beloved” by God and as a reward is given an important glimpse into the future.
“In the first year of Darius son of Ahasuerus, by birth a Mede, who became king over the realm of the Chaldeans— in the first year of his reign, I, Daniel, perceived in the books the number of years that, according to the word of the Lord to the prophet Jeremiah, must be fulfilled for the devastation of Jerusalem, namely, seventy years.”
Daniel 9:1-2 NRSV