Ecclesiastes 4:13

New American Standard Bible (NASB)
A poor yet wise lad is better than an old and foolish king who no longer knows how to receive [g]instruction.

Read Ecclesiastes 4:13 in other translations