Lo yihyeh No Other Gods
Torah Tech torahtech.co/10/lo-yihyeh
The second commandment
לֹא־יִהְיֶה לְךָ אֱלֹקִים אֲחֵרִים עַל־פָּנָי

No Other Gods

The second statement forbids other gods, images, and bowing down to them. How the world came to worship stars and statues, as the Rambam tells it, how a boy in Ur Kasdim began asking the question that led him to God, and what "the third and fourth generation" really means. With every source.

Start reading
The Ten Commandments

Four verses, one commandment

In the Jewish count, everything from "no other gods" to "those who love Me" is the second statement.

לֹא־יִהְיֶה לְךָ אֱלֹקִים אֲחֵרִים עַל־פָּנָי
"You shall have no other gods before Me."
Shemot 20:3Open the source
לֹא־תַעֲשֶׂה לְךָ פֶסֶל וְכׇל־תְּמוּנָה אֲשֶׁר בַּשָּׁמַיִם מִמַּעַל וַאֲשֶׁר בָּאָרֶץ מִתָּחַת וַאֲשֶׁר בַּמַּיִם מִתַּחַת לָאָרֶץ
"Do not make yourself a carved image, or any likeness of what is in the heavens above, on the earth below, or in the water under the earth."
Shemot 20:4Open the source
לֹא־תִשְׁתַּחֲוֶה לָהֶם וְלֹא תׇעׇבְדֵם כִּי אָנֹכִי ה' אֱלֹקֶיךָ אֵל קַנָּא פֹּקֵד עֲוֺן אָבֹת עַל־בָּנִים עַל־שִׁלֵּשִׁים וְעַל־רִבֵּעִים לְשֹׂנְאָי
"Do not bow down to them and do not serve them, for I, Hashem your God, am a jealous God, who visits the sin of fathers on children, on the third and on the fourth generation, of those who hate Me,"
Shemot 20:5Open the source
וְעֹשֶׂה חֶסֶד לַאֲלָפִים לְאֹהֲבַי וּלְשֹׁמְרֵי מִצְוֺתָי
"and who does kindness to thousands, to those who love Me and keep My commandments."
Shemot 20:6Open the source

Three things are forbidden here: having other gods, making images, and bowing down to them or serving them. In the Gemara, Rav Hamnuna counts this statement with the first as the two the people heard straight from God: "'I am' and 'You shall have no other gods' we heard from the mouth of the Almighty" (Makkot 24a; see I Am Hashem Your God).

The Rambam (Rabbi Moshe ben Maimon, Egypt, 1100s) shows how far it reaches. It is not only about what you do. It is about what you let into your mind:

וְכָל הַמַּעֲלֶה עַל דַּעְתּוֹ שֶׁיֵּשׁ שָׁם אֱלוֹהַּ אַחֵר חוּץ מִזֶּה עוֹבֵר בְּלֹא תַּעֲשֶׂה שֶׁנֶּאֱמַר ״לֹא יִהְיֶה לְךָ אֱלֹקִים אֲחֵרִים עַל פָּנָי״. וְכוֹפֵר בָּעִקָּר שֶׁזֶּהוּ הָעִקָּר הַגָּדוֹל שֶׁהַכּל תָּלוּי בּוֹ
"Anyone who lets the thought come into his mind that there is another god besides this one breaks a negative commandment, as it says: 'You shall have no other gods before Me.' And he denies the root, because this is the great root on which everything depends."
Rambam, Foundations of the Torah 1:6Open the source

So how did people ever come to bow down to stars and statues? The Rambam opens his Laws of Idolatry with the answer, told as history.

The Rambam's history

How the world forgot, and how it remembered

From Enosh, Adam's grandson, to Moshe. It does not start with people denying God. It starts with an argument that sounded religious. Step through it.

The Rambam turns this history into a rule. Serving a star, an angel or anything else that was created is idolatry, even for someone who knows that Hashem is God, if he serves it the way Enosh's generation did:

עִקַּר הַצִּוּוּי בַּעֲבוֹדַת כּוֹכָבִים שֶׁלֹּא לַעֲבֹד אֶחָד מִכָּל הַבְּרוּאִים לֹא מַלְאָךְ וְלֹא גַּלְגַּל וְלֹא כּוֹכָב וְלֹא אֶחָד מֵאַרְבָּעָה הַיְסוֹדוֹת וְלֹא אֶחָד מִכָּל הַנִּבְרָאִים מֵהֶן. וְאַף עַל פִּי שֶׁהָעוֹבֵד יוֹדֵעַ שֶׁה' הוּא הָאֱלֹקִים וְהוּא עוֹבֵד הַנִּבְרָא הַזֶּה עַל דֶּרֶךְ שֶׁעָבַד אֱנוֹשׁ וְאַנְשֵׁי דּוֹרוֹ תְּחִלָּה הֲרֵי זֶה עוֹבֵד כּוֹכָבִים
"The core of the commandment about idolatry is not to serve any created thing: not an angel, not a sphere, not a star, not one of the four elements, and not anything made from them. Even if the one serving knows that Hashem is God, if he serves this created thing the way Enosh and the people of his generation first did, he is an idol worshipper."
Rambam, Laws of Idolatry 2:1Open the source
The midrash

Avraham in the idol shop

The Torah does not tell this story. A midrash does, to explain one short verse. Step through it.

The verse is Bereishit 11:28: "Haran died in the presence of Terach his father, in the land of his birth, in Ur Kasdim." Why say "in the presence of his father"? Bereishit Rabbah (a collection of the Sages' teachings on Bereishit) answers with a story told by Rabbi Chiya, the grandson of Rav Ada of Yafo.

Our own observation: the story and the Rambam's history meet at the same point: a person who thinks for himself, in a house full of idols. For more of Avram's story, see Avram's Story.

A hard verse

The third and fourth generation

Does God punish children for what their parents did?

פֹּקֵד עֲוֺן אָבֹת עַל־בָּנִים עַל־שִׁלֵּשִׁים וְעַל־רִבֵּעִים לְשֹׂנְאָי
"Who visits the sin of fathers on children, on the third and on the fourth generation, of those who hate Me."
Shemot 20:5Open the source

It sounds unfair, and another verse seems to say the opposite:

לֹא־יוּמְתוּ אָבוֹת עַל־בָּנִים וּבָנִים לֹא־יוּמְתוּ עַל־אָבוֹת אִישׁ בְּחֶטְאוֹ יוּמָתוּ
"Fathers shall not be put to death for children, and children shall not be put to death for fathers; each person shall be put to death for his own sin."
Devarim 24:16Open the source

The Gemara sets the words "He visits the sin of fathers on children" (in our verse, and again in Shemot 34:7) against Devarim 24:16. It does this while asking why some good people suffer, and it uses the answer to rule out one explanation: that a good person suffers for a wicked father's sins.

וְהָא כְּתִיב: ״פֹּקֵד עֲוֹן אָבוֹת עַל בָּנִים״, וּכְתִיב: ״וּבָנִים לֹא יוּמְתוּ עַל אָבוֹת״, וְרָמֵינַן קְרָאֵי אַהֲדָדֵי
"But it is written: 'He visits the sin of fathers on children,' and it is written: 'Children shall not be put to death for fathers.' And we set the verses against each other."
Berachot 7aOpen the source
וּמְשַׁנֵּינַן: לָא קַשְׁיָא, הָא – כְּשֶׁאוֹחֲזִין מַעֲשֵׂה אֲבוֹתֵיהֶם בִּידֵיהֶם, הָא – כְּשֶׁאֵין אוֹחֲזִין מַעֲשֵׂה אֲבוֹתֵיהֶם בִּידֵיהֶם
"And we resolved it: It is not a contradiction. This one is when they hold on to their fathers' deeds; that one is when they do not hold on to their fathers' deeds."
Berachot 7aOpen the source

The Gemara gives the same answer in Sanhedrin 27b. Rashi (the classic commentator on the Torah and the Gemara, France, 1000s) finds it inside our verse, in its last words, "of those who hate Me." He points to the Aramaic translation of Onkelos:

לשנאי. כְּתַרְגּוּמוֹ, כְּשֶׁאוֹחֲזִין מַעֲשֵׂה אֲבוֹתֵיהֶם בִּידֵיהֶם
"'Of those who hate Me': as the Targum translates it, when they hold their fathers' deeds in their hands."
Rashi on Shemot 20:5Open the source
לְשָׂנְאָי כַּד מְשַׁלְמִין בְּנַיָא לְמֶחֱטֵי בָּתַר אֲבָהָתְהוֹן
"Of those who hate Me, when the children go on sinning after their fathers."
Targum Onkelos on Shemot 20:5Open the source

Our own observation, in plain words: the verse is about children who carry on what their parents did wrong. A child who leaves it is judged as himself. And the next verse sets the two sides next to each other: the sin reaches the third and fourth generation of those who keep it going, and the kindness reaches "thousands" of those who love Hashem.

Two and seven

Its partner on the other tablet

One view in the Mechilta, an early midrash, reads the two tablets side by side. In that view, across from "no other gods" stands "Do not commit adultery."

12345 678910 אָנֹכִי לֹא־יִהְיֶה לֹא תִשָּׂא זָכוֹר כַּבֵּד לֹא תִרְצַח לֹא תִנְאָף לֹא תִגְנֹב לֹא־תַעֲנֶה לֹא תַחְמֹד First tablet: 1 to 5 Second tablet: 6 to 10
The two tablets read from right to left, as Hebrew does. In the view of Rabbi Chananya ben Gamliel (in some editions, Chanina), with five on each tablet, the second statement stands across from the seventh.
כָּתוּב ״לֹא יִהְיֶה לְךָ״, וּכְנֶגְדּוֹ כָתוּב ״לֹא תִנְאָף״. מַגִּיד הַכָּתוּב, שֶׁכָּל מִי שֶׁעוֹבֵד עֲבוֹדָה זָרָה, מַעֲלִין עָלָיו כְּאִלּוּ מְנָאֵף מֵאַחַר הַמָּקוֹם, שֶׁנֶּאֱמַר: ״הָאִשָּׁה הַמְּנָאָפֶת תַּחַת אִישָׁהּ תִּקַּח אֶת זָרִים״
"It is written 'You shall have no other gods,' and across from it is written 'Do not commit adultery.' The verse is telling us that whoever worships idols is counted as if he committed adultery behind God's back, as it says: 'The adulterous wife, who takes strangers instead of her husband.'"
Mechilta d'Rabbi Yishmael, Bachodesh 8Open the source

The Mechilta (an early midrash on Shemot, from the time of the Mishnah) calls God HaMakom, "the Place," and its proof is a verse from the prophet Yechezkel (16:32). It goes on to quote Hoshea (3:1) as well.

Our own observation, in plain words: the prophets describe the bond between Hashem and Israel as a marriage, and Israel's idolatry as a wife who betrays her husband. Serving another god is not a private opinion about religion. It is unfaithfulness inside a covenant. That fits the reason the Mechilta gives for setting the commandment about loyalty to God across from the commandment about loyalty in a marriage.

This is the view of Rabbi Chananya ben Gamliel. The same passage ends with a second opinion:

לְכָךְ נִתְּנוּ עֲשֶׂרֶת הַדִּבְּרוֹת, חֲמִשָּׁה עַל לוּחַ זֶה, וַחֲמִשָּׁה עַל לוּחַ זֶה. דִּבְרֵי רַבִּי חֲנַנְיָה בֶן גַּמְלִיאֵל
"That is why the Ten Commandments were given five on one tablet and five on the other. These are the words of Rabbi Chananya ben Gamliel."
Mechilta d'Rabbi Yishmael, Bachodesh 8Open the source
וַחֲכָמִים אוֹמְרִים: עֲשָׂרָה עַל לוּחַ זֶה וַעֲשָׂרָה עַל לוּחַ זֶה
"And the Sages say: ten on one tablet and ten on the other."
Mechilta d'Rabbi Yishmael, Bachodesh 8Open the source
The edges

Where it stops

What the second commandment does not reach, where it needs a rav, and the one place it never bends.

1

Not on a child who leaves it

"The third and fourth generation" applies to children who hold on to their fathers' deeds. A child who leaves them is not punished for them (Berachot 7a; Sanhedrin 27b; see above).

2

Images: ask your rav

The commandment also forbids making images, and a later verse at Sinai repeats it:

לֹא תַעֲשׂוּן אִתִּי אֱלֹקֵי כֶסֶף וֵאלֹקֵי זָהָב לֹא תַעֲשׂוּ לָכֶם
"Do not make, alongside Me, gods of silver or gods of gold; do not make them for yourselves."
Shemot 20:20Open the source

The Rambam learns from it that some images are forbidden even as decoration:

אָסוּר לַעֲשׂוֹת צוּרוֹת לְנוֹי וְאַף עַל פִּי שֶׁאֵינָהּ עֲבוֹדַת כּוֹכָבִים שֶׁנֶּאֱמַר ״לֹא תַעֲשׂוּן אִתִּי״ כְּלוֹמַר צוּרוֹת שֶׁל כֶּסֶף וְזָהָב שֶׁאֵינָם אֶלָּא לְנוֹי כְּדֵי שֶׁלֹּא יִטְּעוּ בָּהֶן הַטּוֹעִים וִידַמּוּ שֶׁהֵם לַעֲבוֹדַת כּוֹכָבִים
"It is forbidden to make images for decoration, even though they are not idols, as it says: 'Do not make, alongside Me.' That is, images of silver and gold that are only for decoration, so that people who go astray will not be misled by them and think they are for idol worship."
Rambam, Laws of Idolatry 3:10Open the source

In the Rambam's rules (Laws of Idolatry 3:10-11): a human figure that stands out from the surface, a statue or a carving in relief, is forbidden even as decoration. A sunken, painted or woven human picture is permitted. Images of the sun, the moon, the stars, the constellations and the angels are forbidden even when flat. Animals, trees and plants are allowed, even raised.

The details are delicate. Statues, dolls, action figures, a 3D print, a ring with a face: how these rules apply to them today is discussed at length by the poskim (rabbis who decide Jewish law), and they do not all agree. Before you make or keep one, ask your rav.

The Shulchan Aruch (Yoreh De'ah 141:4-7) adds rules that the Rambam does not give here, about keeping such images and about partial figures.

3

The line that never bends

Almost any mitzvah gives way to save a life. Idolatry is one of three that do not:

כׇּל עֲבֵירוֹת שֶׁבַּתּוֹרָה אִם אוֹמְרִין לָאָדָם ״עֲבוֹר וְאַל תֵּהָרֵג״ – יַעֲבוֹר וְאַל יֵהָרֵג, חוּץ מֵעֲבוֹדָה זָרָה וְגִילּוּי עֲרָיוֹת וּשְׁפִיכוּת דָּמִים
"For every sin in the Torah, if a person is told 'Commit it, or you will be killed,' he should commit it and not be killed, except for idolatry, forbidden relations and bloodshed."
Sanhedrin 74aOpen the source

Rabbi Yochanan reports this in the name of Rabbi Shimon ben Yehotzadak, as a vote the Sages took in an upper room in Lod. The Gemara there adds cases where a person must give his life even for a smaller mitzvah, and real cases are never ones to decide alone.

FAQ

Common questions

Short answers, with sources.

What does "lo yihyeh" mean?

"There shall not be," the opening words of Shemot 20:3: "You shall have no other gods before Me." In the Jewish count, verses 3 to 6 are one statement, the second of the ten: no other gods, no images, and no bowing down to them or serving them.

What counts as avodah zarah?

Avodah zarah means "foreign worship," idolatry. The Rambam defines its core as worshipping any created thing, an angel, a star or anything else, the way Enosh's generation did, even if the person knows that Hashem is God (Laws of Idolatry 2:1).

Did the first idol worshippers deny God?

Not at first, says the Rambam. In the days of Enosh, people reasoned that honoring the stars, God's servants, was a way to honor God. The images and the false prophets came later, and only then was God forgotten (Laws of Idolatry 1:1-2).

How old was Avraham when he found God?

The Rambam says Avraham began wondering as a small child and recognized his Creator at forty (Laws of Idolatry 1:3). In the Gemara, Rabbi Ami bar Abba says three (Nedarim 32a), and Bereishit Rabbah 64:4 gives both three and forty-eight. The Kesef Mishneh brings a way to hold both: at three he began, and at forty he came to know his Creator fully.

Is the idol shop story in the Torah?

No. It is a midrash in Bereishit Rabbah 38:13, told to explain why the Torah says that Haran died "in the presence of Terach his father" (Bereishit 11:28).

Are children punished for their parents' sins?

Only when they hold on to their parents' deeds. The Gemara uses this to settle Shemot 20:5 with Devarim 24:16 (Berachot 7a; Sanhedrin 27b), and Rashi reads it in the verse's own words, "of those who hate Me" (Rashi on Shemot 20:5).

Can I keep a statue, a doll or a photo?

The Rambam forbids making a raised human figure even for decoration and allows a flat picture (Laws of Idolatry 3:10-11). Whether you may make or keep a doll, a statue or a photo today is a question for your rav.

Why does the Mechilta pair "no other gods" with "do not commit adultery"?

In Rabbi Chananya ben Gamliel's view, with five statements on each tablet, the second stands across from the seventh, to teach that whoever worships idols is counted as if he committed adultery behind God's back (Mechilta d'Rabbi Yishmael, Bachodesh 8). The Sages there say all ten were written on each tablet.

Keep learning

Keep going

The rest of the series, and more free Torah from Torah Tech. No signup.

Hebrew texts are from Sefaria: Tanach from Miqra al pi ha-Masorah and the Wikisource lower-accents text (CC-BY-SA), the Mishneh Torah from the Torat Emet edition, Bereishit Rabbah from the Torat Emet edition (CC-BY-NC), the Gemara's Hebrew and Aramaic from the William Davidson edition (CC-BY-NC), Rashi from the Rosenbaum and Silbermann edition, Targum Onkelos from the Metsudah edition (CC-BY-NC), and the Mechilta from the Beeri edition (Koren, CC-BY-NC). English renderings and explanations are Torah Tech originals, and any mistakes are ours. The meter in the history and everything marked "our own observation" on this page are ours, not the sources'.

This page is for learning. It is not a halachic ruling. For how these laws apply to you, ask your rav.

Torah Tech · torahtech.co/10/lo-yihyeh · The Opportunity Year in Tel Aviv · Learn more and apply at torahtech.co
The Opportunity Year · Tel Aviv, Israel

Learn like this for a year

Torah Tech is a beit midrash in Tel Aviv built for personal and professional growth: Torah learning at the center of every day, and internships at Israeli startups. It is the year a future Jewish leader realizes who he can become, and chooses to become it.