סימן צד סעיף ט
צָרִיךְ שֶׁלֹּא יַקְפִּיד עַל הָעֵרוּב אִם יֹאכְלֶנּוּ חֲבֵרוֹ. וְאִם מַקְפִּיד עָלָיו, אֵינוֹ עֵרוּב. לָכֵן צָרִיךְ לִזָּהֵר שֶׁלֹּא לְעָרֵב בְּדָבָר שֶׁהֵכִין לְצֹרֶךְ שַׁבָּת (שס"ו).
It is essential [that the one making the eiruv] should not resent it if a neighbor29Who is included in the eiruv. eats it.30On Erev Shabbos or during twilight; but after that, once the eiruv takes effect, even if you do not allow your neighbor to eat from it, it is a valid eiruv. [Bi’ur Halachah 366: 5] If he does resent it, it is not a valid eiruv. He should, therefore, be careful not to make the eiruv with food he prepared for Shabbos.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)