מִשְׁפַּ֤ט אֶחָד֙ יִהְיֶ֣ה לָכֶ֔ם כַּגֵּ֥ר כָּאֶזְרָ֖ח יִהְיֶ֑ה כִּ֛י אֲנִ֥י יְהוָ֖ה אֱלֹהֵיכֶֽם׃
אײן געזעץ זאָל זײַן בײַ אײַך, װי דער פֿרעמדער אַזױ זאָל זײַן דער אײַנגעבאָרענער, װאָרום איך בין ה׳ אײַער גאָט.
Rashi
'אני ה אלהיכם I AM THE LORD YOUR GOD — your God — the God of all of you. Just as I attach My Name to you, so do I attach it to the strangers.
Sforno
כגר כאזרח יהיה, for I the Lord your G’d am just as much the G’d of the convert (compare Job 34,19).
Or HaChaim
כגר כאזרת, convert and natural-born Israelite alike. The Torah did not write: הגר כאזרח, "the convert himself is equal to the natural-born Israelite." The reason is that in the scale of relative degrees of sanctity the convert ranks below the natural-born Israelite. The wording the Torah did use relates only to both categories of Israelites being equal before the law.