Then these men went as a group and found Daniel praying and asking God for help. So they went to the king and spoke to him about his royal decree: 'Did you not publish a decree that during the next thirty days anyone who prays to any god or man except you, O king, would be thrown into the lions' den?' The king answered, 'The decree stands - in accordance with the laws of the Medes and Persians, which cannot be repealed.' Then they said to the king, 'Daniel, who is one of the exiles from Judah, pays no attention to you, O king, or to the decree you put in writing, He still prays three times a day.'
So, these politicians sprung their trap and caught Daniel praying to God as they knew they would. They report this to the king in a detached kind of way as if they were only looking out for the interests of the king. They remind the king that Daniel is not a Babylonian and that he is breaking the law. This is a reminder to us that, like David, we must listen and follow our heavenly King even if that goes against the edict of an earthly king. Daniel knew that there would be a penalty in his choice but he also knew that God was ultimately in charge.