Daniel 6:10 ” Now when Daniel learned that the decree had been published, he went home to his upstairs room where the windows opened toward Jerusalem. Three times a day he got down on his knees and prayed, giving thanks to his God, just as he had done before.”

King Darius had issued an edict, prohibiting any prayer other then to him.  But Daniel continued to pray to his God in obedience to Him rather than man.  That’s because in the beginning, God instituted civil government for the good of all people,(Romans 13:1-5) and  throughout the Scriptures He instructs His people to be in submission to the powers of government. (Titus 3:1 & I Peter 2:13-14)   However, God has never granted any government the right to compel their people to do things which are contrary to His Laws. (Acts 5:29)  But the real wisdom here lies in knowing what’s God’s laws, and what’s merely man’s selfish desires.