Observation: King Darius is tricked into finding Daniel guilty of breaking a kingly decree, which was that people must only bring their requests and petitions to the king, while Daniel continues to pray to Yahweh. When the punishment is carried out, Darius spends the entire night ... not enjoying it. He doesn't sleep, and no woman is brought to him. He instead fasts all night. The passage does not describe this as 'prayer', but the fact he is awake all night fasting implies some level of contemplative, meditative act that would involve hoping and pleading and bargaining.
Then, when the king finds that Yahweh has in fact saved Daniel, he says something interesting. Before and after this statement he names Yahweh as "your (or Daniel's) God." However, twice, including his very first words in the morning, King Darius calls him "the living God." This harkens back to how Daniel has discussed Yahweh, when he warned Belshazzar that he honored the gods of gold and silver and wood and stone but not the God who controls life.
In other words, there is strong evidence in context that ... Daniel has taught Darius about Yahweh, that Darius has listened to those lessons, and that Darius spent the night at least in some meditation on Yahweh if not outright praying to him. In addition, that time included considering how Yahweh controls life - as the living God - and thus could control the life of Daniel. Once Daniel is saved, Darius puts out a declaration that all should tremble and fear before "the God of Daniel, for he is the living God" who endures forever.
Darius was taught about the Lord in a specific way, hoped for that to be true, and absolutely believed it when his hope was found to be aligned to the reality of the world and the experience he received.
Application: I am pretty sure many, MANY Christians would include in their story of faith a moment where they have a hope for something, and that hope becomes a totally inexplicable experience in their lives. I know I do, and mine also includes a time of prayer where I actively said while praying that I expected it was a waste of time because there was no God to even hear it (or who cared) in the first place. Therefore, I totally get Darius, fasting ... praying ... then discovering that somehow what he hoped for happened.
And here's part of the key to this ... Daniel had told Darius enough about God so that he WOULD actually hope, and maybe pray. Darius knew just enough about God - the living God according to Daniel - to have a sliver of hope. Daniel had taught Darius a little about the nature of the Lord as a loving God who holds all creation and all life in his hands, and Darius hoped that included sparing Daniel's life in an impossible circumstance. As a result, the entire Persian Empire was ordered to honor the Lord.
We don't have to convert people to believe in Jesus. We have to tell them just enough about Jesus so that, when they have a need and they dare to hope ... they may say some kind of prayer that the Lord will answer.
Prayer: Lord, when I remember you hold my life, and all life, in your hands, I should be far more humble and reverent and obedient. Please, Lord, forgive my sins and help me to further develop and heart and a mind and a body that is obedient to you, both because I love you, and because you own and control everything, my very life included. Amen.