Ecclesiastes 8:1; Ecclesiastes 8:5

1 Only the wise know what things really mean. Wisdom makes them smile and makes their frowns disappear.
5 As long as you obey his commands, you are safe, and a wise person knows how and when to do it.