be cruel to be kind
US /bi kruːəl tu bi kaɪnd/
UK /bi kruːəl tu bi kaɪnd/

1.
to do something that causes someone pain or discomfort, but which you believe will ultimately benefit them
:
•
I had to fire him, but sometimes you have to be cruel to be kind.
•
My parents made me study hard, and while it felt harsh at the time, they were just being cruel to be kind.