Ecclesiastes 7:18

New American Standard Bible (NASB)
It is good that you grasp one thing and also not [l]let go of the other; for the one who fears God comes forth with [m]both of them.

Read Ecclesiastes 7:18 in other translations