Affliction, John Brown

Now let us thank the Eternal Power: convinced
That Heaven but tries our virtue by affliction,—
That oft the cloud which wraps the present hour
Serves but to brighten all our future days.

- John Brown, Barbarossa (1754), Act V, Scene 3.

http://en.wikiquote.org/wiki/Affliction