ספר המדות, Children / Part I Children / Part I · כט
Sefer HaMiddot 238
כט. מִי שֶׁמְּהַרְהֵר בִּזְנוּת, גַּם אִשְׁתּוֹ בָּאָה לִידֵי הִרְהוּרִים, וּכְשֶׁאִשְׁתּוֹ מְהַרְהֶרֶת, עַל־יְדֵי זֶה הַקְּלִפּוֹת בָּאִין עָלֶיהָ בַּחֲלוֹם, וְעַל־יְדֵי זֶה הַבָּנִים שֶׁלָּהּ מֵתִים.
29. One who thinks about promiscuity, his wife also comes to have such thoughts. And when his wife has promiscuous thoughts, the husks (evil forces) come to her (have relations with her) in a dream, and through this her children die.