Proverbs 17:2

NASB
A servant who acts wisely will rule over a son who acts shamefully, And will share in the inheritance among brothers.