Hebrews 2:10:

For it became him, for whom are all things, and by whom are all things, in bringing many sons unto glory, to make the captain of their salvation perfect through sufferings.

See also:

Who You Are and What You Have

Objection: God Sometimes Heals You Only After He Has Let You Suffer a While (1 Peter 5:10)