Ecclesiastes 8:5
ESV
Whoever keeps a command will know no evil thing, and the wise heart will know the proper time and the just way.
NIV
Whoever obeys his command will come to no harm, and the wise heart will know the proper time and procedure.
NASB
One who keeps a royal command experiences no trouble, for a wise heart knows the proper time and procedure.
CSB
The one who keeps a command will not experience anything harmful, and a wise heart knows the right time and procedure.
NLT
Those who obey him will not be punished. Those who are wise will find a time and a way to do what is right,
KJV
Whoso keepeth the commandment shall feel no evil thing: and a wise man's heart discerneth both time and judgment.
NKJV
He who keeps his command will experience nothing harmful; And a wise man’s heart discerns both time and judgment,