John 7:18:

He that speaketh of himself seeketh his own glory: but he that seeketh his glory that sent him, the same is true, and no unrighteousness is in him.

See also:

Objection: Suffering Glorifies God (Romans 8:17)