Matthew 26:42parerchomai
Then Jesus went away a second time and prayed, "My Father, if it is not possible for this painful thing to be taken from me, and if I must do it, I pray that what you want will be done."
Jesus prays about the painful suffering ahead, yielding to the Father's will.
Hebrews 12:11lupē
We do not enjoy being disciplined. It is painful at the time, but later, after we have learned from it, we have peace, because we start living in the right way.
Discipline is painful at the time but later brings peace.