Passage
And I will sanctify my great name, which was profaned among the Gentiles, which you have profaned in the midst of them: that the Gentiles may know that I am the Lord, saith the Lord of hosts, when I shall be sanctified in you before their eyes.
Nearby Context
Ezekiel 36:21 And I have regarded my own holy name, which the house of Israel hath profaned among the nations to which they went in.
Ezekiel 36:22 Therefore thou shalt say to the house of Israel: Thus saith the Lord God: It is not for your sake that I will do this, O house of Israel, but for my holy name's sake, which you have profaned among the nations whither you went.
Ezekiel 36:23 And I will sanctify my great name, which was profaned among the Gentiles, which you have profaned in the midst of them: that the Gentiles may know that I am the Lord, saith the Lord of hosts, when I shall be sanctified in you before their eyes.
Ezekiel 36:24 For I will take you from among the Gentiles, and will gather you together out of all the countries, and will bring you into your own land.
Ezekiel 36:25 And I will pour upon you clean water, and you shall be cleansed from all your filthiness, and I will cleanse you from all your idols.
Study Lenses
The verse centers on "sanctify", "great", "name", "profaned", "gentiles", and "midst". It is saying that the verse draws attention to "sanctify" and "great", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 22's "Therefore thou shalt say to the house..." into verse 24's "For I will take you from among...", so "sanctify" and "great" belong inside that flow. In Ezekiel context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "sanctify" and "great" with trust shaped by these words, not by a vague optimism outside the passage.