Ecclesiastes 8:2–7 (ESV)
2 I say: Keep the king’s command, because of God’s oath to him. 3 Be not hasty to go from his presence. Do not take your stand in an evil cause, for he does whatever he pleases. 4 For the word of the king is supreme, and who may say to him, “What are you doing?” 5 Whoever keeps a command will know no evil thing, and the wise heart will know the proper time and the just way. 6 For there is a time and a way for everything, although man’s trouble lies heavy on him. 7 For he does not know what is to be, for who can tell him how it will be?