Proverbs 17:2

2 A wise slave will become master over a son who acts shamefully, and he will share the inheritance with the brothers.