"So the king gave the order, and they brought Daniel and threw him into the lion's den. The king said to Daniel, 'May your God, whom you serve continually, rescue you!'" Daniel (Daniel 6:16)
No question, Daniel got a rough deal. He was set up by jealous lesser men who wanted him out of the way. It seemed like they succeeded except for one thing they overlooked: Daniel's trust in God.
The interesting thing, however, about Daniel being thrown into the den of lions is that God didn't deliver him out of the den before Daniel found deliverance in it.
Imagine if Daniel had fought against being thrown into the den (which he would have been justified in doing) and gone into the den fighting against it every inch of the way, chances are the lions would have torn him to shreds before he hit the bottom. But Daniel didn't. He accepted his lot and trusted his life to God who shut the lion's mouths.
On more than one occasion I have asked God that if I am not going to be delivered out of my "lion's den" (naming the frustrating situation I'm in), would he please deliver me in it.
Sometimes, like Daniel, God has a lesson for us to learn in our present difficult situation and before he delivers us out of it, like Daniel, we need to find deliverance in it.