Sirach 30:2

2 He who chastises his son will have profit of him, And in the midst of his acquaintances he will have glory of him.