וָאַ֙עַשׂ֙ לְמַ֣עַן שְׁמִ֔י לְבִלְתִּ֥י הֵחֵ֛ל לְעֵינֵ֥י הַגּוֹיִ֖ם אֲשֶׁר־הֵ֣מָּה בְתוֹכָ֑ם אֲשֶׁ֨ר נוֹדַ֤עְתִּי אֲלֵיהֶם֙ לְעֵ֣ינֵיהֶ֔ם לְהוֹצִיאָ֖ם מֵאֶ֥רֶץ מִצְרָֽיִם׃
但我為我名的緣故行事,免得我的名在他們所居住的列國人眼前被褻瀆;我曾在列國人眼前向以色列人顯明我自己,要領他們出埃及地。
Rashi
that it should not be desecrated That My Name should not be desecrated; since I became known to them and I promised to take them out, and the Egyptians recognized that they are My people, if I were to destroy them their enemies would say, “Because He has not the ability to take them out.”