Tim Keller shares a practical example of gazing at Jesus Christ for the peace of God that surpasses all understanding:

“Horatio Spafford was the best divorce lawyer in Johnson County who lost everything he had in the Chicago fire of 1871. Only two years later, he sent his wife, Anna, and their four daughters on a ship across the Atlantic Ocean to England. The ship hit another ship and began to sink. As it was sinking, Anna got the four little girls together and prayed. The ship went under the water, and they all were scattered into the waves, and all four little girls drowned. Anna was found floating unconscious in the water by a rescue ship. They took her to England, and she cabled Horatio Spafford just two words: “saved alone.”

When Spafford was on the ship on his way to England to bring his wife home, he began to write a hymn — “It is well with my soul… When peace, like a river…” Those are the words he wrote.

Here is what I want you to think about: why would a man dealing with his grief, seeking the peace of God — the peace like a river — spend the entire hymn on Jesus and His work of salvation? And why would he bring up the subject of his own sin at such a time? He wrote:

My sin, oh, though the bliss of this glorious thought!
My sin, not in part but the whole,
Is nailed to the cross, and I bear it no more.
Praise the Lord, praise the Lord, O my soul.

What has that got to do with his four little girls who are dead? Everything!
Do you know why? When things go wrong, one of the ways you lose your peace is that you think maybe you are being punished. But look at the cross! All the punishment fell on Jesus. Another thing you may think is that maybe God doesn’t care. But look at the cross! The Bible gives you a God that says, “I have lost a child too; but not involuntarily — voluntarily, on the cross, for your sake. So that I could bring you into my family.”

In that hymn you can watch a man thinking, thanking and loving himself into the peace of God. It worked for him under those circumstances. It worked for Paul under his circumstances (Phil 4:6-13). It will work for you.

– Timothy Keller, “Walking With God Through Pain and Suffering”, p.311-2