Ecclesiastes 8:1; Ecclesiastes 8:5

1 Who is like the wise man? And who knows the interpretation of a thing? A man's wisdom makes his face shine, and the hardness of his face is changed.
5 Whoever keeps the mitzvah shall not come to harm, and his wise heart will know the time and procedure.