Daniel 6:14

Amplified Bible (AMP)
Then, as soon as the king heard these words, he was deeply distressed [over what he had done] and set his mind on rescuing Daniel; and he struggled until the sun went down [trying to work out a way] to save him.

Read Daniel 6:14 in other translations