Keep the king's command because of your sacred oath.
References for Ecclesiastes 8:2
Do not be terrified; go from his presence, do not delay when the matter is unpleasant, for he does whatever he pleases.
For the word of the king is powerful, and who can say to him, "What are you doing?"
Whoever obeys a command will meet no harm, and the wise mind will know the time and way.
For every matter has its time and way, although the troubles of mortals lie heavy upon them.
Indeed, they do not know what is to be, for who can tell them how it will be?
No one has power over the wind to restrain the wind, or power over the day of death; there is no discharge from the battle, nor does wickedness deliver those who practice it.
References for Ecclesiastes 8:8
All this I observed, applying my mind to all that is done under the sun, while one person exercises authority over another to the other's hurt.
Then I saw the wicked buried; they used to go in and out of the holy place, and were praised in the city where they had done such things. This also is vanity.
References for Ecclesiastes 8:10
Because sentence against an evil deed is not executed speedily, the human heart is fully set to do evil.
Though sinners do evil a hundred times and prolong their lives, yet I know that it will be well with those who fear God, because they stand in fear before him,