Shemot20:2

אָנֹכִי יְהוָה אֱלֹהֶיךָ אֲשֶׁר הוֹצֵאתִיךָ מֵאֶרֶץ מִצְרַיִם מִבֵּית עֲבָדִים׃

"I am the Eternal your Almighty, who brought you out of the land of Egypt, out of the house of slavery.

Shemot 20:2

אָנֹכִי יְהוָה אֱלֹהֶיךָ

Shemot / Exodus 20:2

אָנֹכִי יְהוָה אֱלֹהֶיךָ אֲשֶׁר הוֹצֵאתִיךָ מֵאֶרֶץ מִצְרַיִם מִבֵּית עֲבָדִים׃

"I am the Eternal your Almighty, who brought you out of the land of Egypt, out of the house of slavery.

Pshat פְּשָׁט

The very same

Rashi: the going out of Egypt is worth your serving Me. And more: at the sea He appeared as a warrior, and here as an elder full of mercy. So that they would not say "these are two powers", He says: I am the One who brought you out of Egypt and was at the sea. And "your Almighty" is said in the singular, to give Moshe (Moses) a word in the people's defence after the golden calf.

How Rashi explain it

Remez רֶמֶז

I Myself wrote

Rabbi Yochanan: "I" (אָנֹכִי) is the first letters of the words "I Myself wrote and gave". The sages: "a pleasant saying, a given writing". There is also a reading backwards: "given in writing, faithful are its words". Ba'al HaTurim: "who brought you out" stands three times: twice in the statements, and a third time when the Eternal brought Avram (Abraham) out of Ur Kasdim, to give the Torah to his sons.

How Talmud, Shabbat and Kitzur Ba'al HaTurim explain it

Drash דְּרָשׁ

A voice by each one's strength

Shemot Rabbah: heretics asked Rabbi Simlai whether there are many gods, since it is written "the voice of the Almighty (אֱלֹהִים)". He answered: it is written "speaking" in the singular. Rabbi Levi explained to the students: the voice came to each by his strength, to the young, to the old and to the children. And the Holy One, blessed is He, said: do not think that since there are many voices there are many gods, "I am the Eternal your Almighty".

How Shemot Rabbah explain it

Sod סוֹד

A son, not a slave

Kedushat Levi: one who serves out of fear is like a slave, and one who serves out of love is like a son. Had the Torah been given before the going out of Egypt, Israel would have accepted it out of fear that otherwise they would not go out, and would have stayed slaves. So the Eternal first brought them out, and then gave the Torah, and they accepted it out of love, as sons. This is "brought you out of the house of slavery": so that you would not be a slave but a son.

How Kedushat Levi explain it