In spite of his difficult circumstances, Daniel never gave up. He remained faithful in prayer and steadfast in faith. A simple thing as not eating the king's food became a victory in Daniel's life. Prayer and faith sustained him in the midst of a trying time. Daniel later held a prominent position within the Babylonian government.
Captivity can come in many forms.
For some of us it is literal and for others it is symbolic. For Daniel it had become a fact of his life. Problems and difficulties arise in each of our lives. Praying is communicating with God. Daniel indulged in prayer.