This from John Flavel has been huge for me lately.
Eye the wisdom of God in all your afflictions. Behold it in the choice of the kind of your affliction, this, and not another; the time, now and not at another season; the degree, in this measure only, and not in a greater; the supports offered you under it, not left altogether helpless; the issue to which it is overruled, it is to your good, not ruin. Look upon these and then ask your heard that question God asked Jonah, “Doest thou well to be angry?” (4:9). Surely, when you consider all – what need you had of these rods, that your corruptions will require all this, it may be much more, to mortify them; that without the perishing of these things you might have perished for ever – you will see great reason to be quiet and well satisfied under the hand of God.
Eye the all-sufficiency of God in the day of affliction. See enough in Him still, whatever is gone. Here is the fountain still as full as ever, though this or that pipe is cut off, which was wont to convey somewhat of it to me.
Eye the goodness of God in all your afflictions. Why should we be cast down under sad providences while we have so great security that even by the hands of these providences God will do us good, and all these things shall turn to our salvation (Rom. 8:28)? By these God is but killing your lusts, weaning your hearts from a vain world, preventing temptations and exciting your desires after heaven. This is all the hurt they shall do you, and shall that sadden us?