Ezekiel 20:9

Amplified Bible (AMP)
But I acted for My Name’s sake, that it would not be profaned in the sight of the [pagan] nations among whom they lived, in whose sight I made Myself known to them by bringing them out of the land of Egypt.

Read Ezekiel 20:9 in other translations