It seemed good to Darius [who became king after Belshazzar] to appoint over the kingdom 120 satraps who would be in charge throughout the kingdom, and over them three chief commissioners (of whom Daniel was one), that these satraps might be accountable to them, so that the king would have no loss [from disloyalty or mismanagement]. Then this Daniel, because of the extraordinary spirit within him, began distinguishing himself among the commissioners and the satraps, and the king planned to appoint him over the entire realm. Then the [other two] commissioners and the satraps began trying to find a reason to bring a complaint against Daniel concerning the [administration of the] kingdom; but they could find no reason for an accusation or evidence of corruption, because he was faithful [a man of high moral character and personal integrity], and no negligence or corruption [of any kind] was found in him. Then these men said, “We will not find any basis for an accusation against this Daniel unless we find something against him in connection with the law of his God.” [Acts 24:13-21; 1 Pet 4:12-16]
Then these commissioners and satraps agreed to approach the king and said to him, “King Darius, live forever! All the commissioners of the kingdom, the prefects and the satraps, the counselors and the governors have consulted and agreed together that the king should establish a royal statute and enforce an injunction that anyone who petitions (prays to) any god or man besides you, O king, during the next thirty days, shall be thrown into the den of lions. Now, O king, establish the injunction and sign the document so that it may not be changed, in accordance with the law of the Medes and Persians, which [insures that it] may not be altered or revoked.” So King Darius signed the document, that is, the injunction.
Now when Daniel knew that the document was signed, he went into his house (now in his roof chamber his windows were open toward Jerusalem); he continued to get down on his knees three times a day, praying and giving thanks before his God, as he had been doing previously. [Ps 5:7] Then, by agreement, these men came [together] and found Daniel praying and making requests before his God. Then they approached and spoke before the king regarding his injunction, “Have you not signed an injunction that anyone who petitions (prays to) any god or man except you, O king, within the designated thirty days, is to be thrown into the den of lions?” The king answered, “The statement is true, in accordance with the law of the Medes and Persians, which may not be altered or revoked.” Then they answered and said before the king, “Daniel, who is one of the exiles from Judah, does not pay any attention to you, O king, or to the injunction which you have signed, but keeps praying [to his God] three times a day.”
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.