Ecclesiastes 8:5 in the King James Version
Whoso keepeth the commandment shall feel no evil thing: and a wise man’s heart discerneth both time and judgment.
Context
4 for the king’s word is supreme. Who can say to him, “What are you doing?”
5 Whoever keeps the commandment shall not come to harm, and his wise heart will know the time and procedure.
6 For there is a time and procedure for every purpose, although the misery of man is heavy on him.