Chastening never seems to be joyful in the moment, but painful. However, when it's over, it yields the peaceable fruit of righteousness to those who receive it. When God rebukes His children, it is always for their benefit and their long-term success.