It is the opening line of a hymn William Cowper wrote in 1773, originally titled Light Shining out of Darkness. Isaiah 55:8-9 says something adjacent, that God's thoughts are higher than ours, but it says it as an invitation to repent rather than as a shrug at unexplained suffering.
Where the line comes from
"God moves in a mysterious way, his wonders to perform."
That is the first line of a hymn by William Cowper, written in 1773 and published the following year by his friend John Newton, the former slave trader who wrote "Amazing Grace". Cowper originally titled it "Light Shining out of Darkness".
It is not a Bible verse. It has never been a Bible verse. It is simply a very good line, from a hymn that entered English so thoroughly that people assume Scripture must have said it first.
Who wrote it, and when
This is the part worth knowing before deciding what the line means.
Cowper suffered from severe depression for most of his adult life, with periods of institutionalisation. He wrote this hymn in 1773, the year he attempted to drown himself. It was the last hymn he ever wrote.
So the line did not come from someone offering a tidy explanation of other people's suffering. It came from a man writing his way through his own, and the hymn reads that way if you get past the first line:
Deep in unfathomable mines Of never failing skill He treasures up His bright designs And works His sov'reign will.
Ye fearful saints, fresh courage take, The clouds ye so much dread Are big with mercy, and shall break In blessings on your head.
That is a man arguing with his own despair, not dismissing anyone else's.
What Scripture says nearby
The nearest passage is Isaiah 55:8-9:
For my thoughts are not your thoughts, neither are your ways my ways, declares the LORD. For as the heavens are higher than the earth, so are my ways higher than your ways and my thoughts than your thoughts.
Lifted out, that reads like a general statement about divine inscrutability, which is how it is normally used. Read from two verses earlier, it is doing something much more specific:
Seek the LORD while he may be found; call upon him while he is near; let the wicked forsake his way, and the unrighteous man his thoughts; let him return to the LORD, that he may have compassion on him, and to our God, for he will abundantly pardon. For my thoughts are not your thoughts... (Isaiah 55:6-8)
The contrast is between God's readiness to forgive and ours. The "ways" that are higher are specifically his willingness to abundantly pardon someone who does not deserve it. Isaiah is not saying God is unknowable in general. He is saying God's mercy is larger than you would expect, so come back.
That is a warmer and far more usable sentence than the shrug it usually gets flattened into.
The problem with the shrug
"God works in mysterious ways" is most often deployed when someone is suffering and nobody knows what to say. It is meant to comfort. It frequently does the opposite, because what the sufferer hears is: there is an explanation, you are not entitled to it, stop asking.
Scripture handles this better in two directions at once.
It does affirm that some things are not disclosed. "The secret things belong to the LORD our God, but the things that are revealed belong to us and to our children" (Deuteronomy 29:29). There is a real category of the undisclosed, and the same verse insists there is a large category of the disclosed that we are responsible for.
And it never uses that as a reason to stop asking. Job asks for a hundred and fifty verses. The psalmists ask constantly: how long, why have you forsaken me, why do you hide your face. Habakkuk opens his book by accusing God of not listening. None of that is treated as faithlessness. Lament is a scriptural genre with its own vocabulary, and "God works in mysterious ways" is not in it.
Where Paul lands
Paul reaches something like Cowper's line at the end of Romans 11, after three chapters wrestling with the hardest question in the letter:
Oh, the depth of the riches and wisdom and knowledge of God! How unsearchable are his judgments and how inscrutable his ways! (Romans 11:33)
Note where it sits. Not as an opening move to shut down a question, but as the conclusion of eleven chapters of sustained argument. Paul earns the doxology by working the problem first. He does not use inscrutability to avoid the work; he arrives at it having done the work and finding there is more.
That is the difference between a doxology and a deflection, and it is entirely a matter of when in the conversation the sentence appears.
What to say instead
If you are with someone in the middle of something and reaching for this line, the honest version is usually shorter: I do not know why this is happening.
That is true, it does not put words in God's mouth, and it leaves the person free to keep asking. If you want to add something scriptural, Isaiah 55 read properly gives you a better offer than the mystery: God's readiness to have compassion runs further than yours would.
The point
The line is William Cowper's, written in 1773 in the middle of a breakdown, and it is a good line.
It is not Scripture, and the passage nearest to it is not about God being unknowable. It is about God's mercy being larger than we would expect, said as an invitation. Quoting the hymn as a verse swaps an invitation for a closed door.
Sources
- William Cowper, "Light Shining out of Darkness" (1773) · The hymn. Published 1774 by John Newton
- Isaiah 55:6-9 · The nearest scriptural idea, read from verse 6 rather than verse 8
- Deuteronomy 29:29 · The secret things belong to the LORD, the revealed things to us
- Romans 11:33-36 · Paul on unsearchable judgments, arriving as worship rather than as an excuse
Terms in this article
Every passage each one appears in, with the definition attributed to its source.
Keep reading

Verses in Context
"All Things Work Together for Good" Defines Its Own Good
Romans 8:28 promises a good that the next verse defines, and it is not that circumstances improve. Paul is writing to people about to be killed.

Verses in Context
Is "Faith Over Fear" a Bible Verse?
The phrase is modern, not scriptural. The Bible treats fear more carefully than the slogan does, and it never asks anyone to stop feeling it.

Verses in Context
"God Won't Give You More Than You Can Handle" Is Not What Paul Wrote
1 Corinthians 10:13 is about temptation, not hardship, and it promises an escape route rather than a limit on suffering. Paul says the opposite elsewhere.



