Hebrews 12:11 Now no chastening seems to be joyful for the present, but painful; nevertheless, afterward it yields the peaceable fruit of righteousness to those who have been trained by it.
It would benefit us to remember that the writer is still addressing the same issue he began laying out in verse 1. Christians are to run the race without unneeded weight or the snare of sin that causes us to fall. We are to look to our Lord, whose life was an example of godliness in the face of persecution. Christ our Lord learned obedience by suffering; the notion here is that God’s saints, His children, will learn and learn best the same way our Master did, John 13:16, 15:18, Matthew 10:24, 25.