Being faithful to express our thankfulness to God is always more important than our obedience to man.
"Now when Daniel knew that the writing was signed, he went into his house; and his windows being open in his chamber toward Jerusalem, he kneeled upon his knees three times a day, and prayed, and gave thanks before his God, as he did aforetime."
Daniel 6:10