That was the prophet Daniel. The full story is in Daniel 6. Daniel was cast into a den of lions because he refused to stop praying to his God. The last part of the story is given below.
Then the king commanded, and Daniel was brought and cast into the den of lions. The king declared to Daniel, “May your God, whom you serve continually, deliver you!” 17 And a stone was brought and laid on the mouth of the den, and the king sealed it with his own signet and with the signet of his lords, that nothing might be changed concerning Daniel. 18 Then the king went to his palace and spent the night fasting; no diversions were brought to him, and sleep fled from him.
19 Then, at break of day, the king arose and went in haste to the den of lions. 20 As he came near to the den where Daniel was, he cried out in a tone of anguish. The king declared to Daniel, “O Daniel, servant of the living God, has your God, whom you serve continually, been able to deliver you from the lions?” 21 Then Daniel said to the king, “O king, live forever! 22 My God sent his angel and shut the lions’ mouths, and they have not harmed me, because I was found blameless before him; and also before you, O king, I have done no harm.” 23 Then the king was exceedingly glad, and commanded that Daniel be taken up out of the den. So Daniel was taken up out of the den, and no kind of harm was found on him, because he had trusted in his God. 24 And the king commanded, and those men who had maliciously accused Daniel were brought and cast into the den of lions-they, their children, and their wives. And before they reached the bottom of the den, the lions overpowered them and broke all their bones in pieces.