 And so immediately then in verse 3 of chapter 9, he sets his face to the Lord to seek by prayer and supplication with fasting and sackcloth and ashes, and he begins to confess his sin and the sins of his people. In other words, he knows there has to be a spiritual response that precipitates the end of the captivity. So Daniel is studying the prophecies.