Daniel's life was in danger due Nebuchadnezzar's threat to slay all the wise men. He turned to God in prayer and found the answer.