They said to Rabbi Hanina: Behold, we have stated nine; [Remember the day of] the Sabbath (Exodus 20:8) — how does one transgress against it? He said to them: I will tell you. Sometimes there is a priest who has a wife who is the daughter of a priest, and an Israelite adulterer comes upon her, and she bears a child from him, and they suppose concerning him that he is the son of the priest. And the child grows up and ministers in the Temple, and arranges wood and offers it up on the Sabbath, and so he is found to be profaning the Sabbath. Behold, these are the Ten Commandments that the sotah transgresses together with the adulterer. And concerning her Solomon said, "And I find more bitter than death [the woman whose heart is snares and nets]" (Ecclesiastes 7:26). What is the meaning of "snares" (metzodim)? She lies in wait (tzadah) in this world and in the world to come. And "nets" (haramim): this net catches in the water but does not catch on dry land; but the woman catches in the sea and on the dry land.
How the Sotah Breaks the Tenth Commandment Through Her Child
Midrash Tanchuma Buber, Nasso 4:3
אמרו לו לר' חנינא הרי אמרנו תשעה, [זכור את יום] השבת כיצד עובר עליו, אמר להם אני אומר לכם פעמים כהן שיש לו אשה כהנת, ישראל נואף בא עליה, והיא יולדת ממנו, סבורים בו שהוא בנו של כהן, ועומד התינוק ומשמש בבית המקדש, ועורך עצים ומעלה בשבת, ונמצא מחלל השבת, הרי עשרת דברות שהסוטה עוברת עם הנואף, ועליה אמר שלמה ומוצא אני מר ממות [את האשה אשר היא מצודים וחרמים] (קהלת ז כו), מהו מצודים, צדה בעולם הזה ולעולם הבא, וחרמים החרם הזה צד במים, ואינו צד ביבשה, אבל האשה צד בים וביבשה.