What happened on the cross?

There’s a CCM song with a line that says God recycles pain into gain. Job would concur, and so would many others, for instance Maggie and myself. Recall my nephrectomy account – death would have been fine and gain for me (not my wife, though), but that wasn’t the current plan.