Foreign Worship and Customs of the Nations

The Rambam · Sefer Madda

הלכות עבודה זרה וחוקות הגויים ט׳Foreign Worship and Customs of the Nations 9

Chapter 9 of 12 in Foreign Worship and Customs of the Nations18 halachot

Halacha 1א׳

שְׁלֹשָׁה יָמִים לִפְנֵי חַגָּם שֶׁל עוֹבְדֵי כּוֹכָבִים אָסוּר לִקַּח מֵהֶם וְלִמְכֹּר לָהֶם דָּבָר הַמִּתְקַיֵּם, לִלְווֹת מֵהֶן וּלְהַלְווֹתָם, לִפָּרַע מֵהֶן וְלִפְרֹעַ לָהֶם מִלְוֶּה בִּשְׁטָר אוֹ עַל הַמַּשְׁכּוֹן אֲבָל מִלְוֶּה עַל פֶּה נִפְרָעִין מֵהֶן מִפְּנֵי שֶׁהוּא כְּמַצִּיל מִיָּדָם. וּמֻתָּר לִמְכֹּר לָהֶן דָּבָר שֶׁאֵינוֹ מִתְקַיֵּם כְּגוֹן יְרָקוֹת וְתַבְשִׁיל עַד יוֹם חַגָּם. בַּמֶּה דְּבָרִים אֲמוּרִים בְּאֶרֶץ יִשְׂרָאֵל אֲבָל בִּשְׁאָר אֲרָצוֹת אֵינוֹ אָסוּר אֶלָּא יוֹם חַגָּם בִּלְבַד. עָבַר וְנָשָׂא וְנָתַן עִמָּהֶן בְּאוֹתָן הַשְּׁלֹשָׁה יָמִים הֲרֵי זֶה מֻתָּר בַּהֲנָאָה. וְהַנּוֹשֵׂא וְנוֹתֵן בְּיוֹם חַגָּם עִמָּהֶן הֲרֵי זֶה אָסוּר בַּהֲנָאָה:

Three days before the idolaters' feast, it is forbidden to buy of them or sell to them anything durable; likewise to borrow of them or lend to them; repay to them money that had been borrowed or exact from them payment of a loan, secured by deed or pledge; but the payment of a personal loan (for which there is no pledge or deed) may be exacted, as it is equivalent to recovering from them what might otherwise be lost. Perishable products, such as vegetables or cooked food, may be sold to them, up to the day of their feast. These restrictions apply to Palestine. In other countries, they are only enforced on the feast day. If these rules were violated, and one engaged in commercial transactions with them during these three days, the proceeds may be used. But the proceeds of transactions with them on their feast day are forbidden to be used.

Halacha 2ב׳

וְאָסוּר לִשְׁלֹחַ דּוֹרוֹן לְכוּתִי בְּיוֹם אֵידוֹ אֶלָּא אִם כֵּן נוֹדַע לוֹ שֶׁאֵינוֹ מוֹדֶה בַּעֲבוֹדַת כּוֹכָבִים וְאֵינוֹ עוֹבְדָהּ. וְכֵן כּוּתִי שֶׁשָּׁלַח דּוֹרוֹן לְיִשְׂרָאֵל בְּיוֹם חַגּוֹ לֹא יְקַבְּלֶנּוּ מִמֶּנּוּ. וְאִם חָשַׁשׁ לְאֵיבָה נוֹטְלוֹ בְּפָנָיו וְאֵינוֹ נֶהֱנֶה בּוֹ עַד שֶׁיִּוָּדַע לוֹ שֶׁזֶּה הַכּוּתִי אֵינוֹ עוֹבֵד כּוֹכָבִים וְאֵינוֹ מוֹדֶה בָּהּ:

A gift may not be sent to a gentile on his feast day, unless the sender knows that the recipient neither professes nor practises idolatry. So too, if a gentile sent a gift to an Israelite, on his feast day, the latter should not accept it. If he apprehends that this might cause ill-will, he should accept it in the sender's presence, but not use it till he has ascertained that the gentile neither practises idolatry nor professes it.

Halacha 3ג׳

הָיָה אֵידָן שֶׁל אוֹתָן עַכּוּ"ם יָמִים הַרְבֵּה שְׁלֹשָׁה אוֹ אַרְבָּעָה אוֹ עֲשָׂרָה כָּל אוֹתָן הַיָּמִים כְּיוֹם אֶחָד הֵן וְכֻלָּן אֲסוּרִין עִם ג' יָמִים לִפְנֵיהֶן:

If the gentiles' feast lasts several days—three, four or ten—all of them are counted as one day, and the restrictions apply to them all as well as to the three preceding days.

Halacha 4ד׳

כְּנַעֲנִים עוֹבְדֵי כּוֹכָבִים וּמַזָּלוֹת הֵם וְיוֹם רִאשׁוֹן הוּא יוֹם אֵידָם. לְפִיכָךְ אָסוּר לָתֵת וְלָשֵׂאת עִמָּהֶם בְּאֶרֶץ יִשְׂרָאֵל יוֹם חֲמִישִׁי וְיוֹם שִׁשִּׁי שֶׁבְּכָל שַׁבָּת וְשַׁבָּת וְאֵין צָרִיךְ לוֹמַר יוֹם רִאשׁוֹן עַצְמוֹ שֶׁהוּא אָסוּר בְּכָל מָקוֹם. וְכֵן נוֹהֲגִין עִמָּהֶם בְּכָל אֵידֵיהֶם:

The Nazarenes are idolaters.**** They are not so regarded by Jews living in Christian countries. The first day of the week is their festival. Hence it is forbidden in Palestine to have commercial intercourse with them on the fifth and sixth day in each week; and obviously on the first day itself, this is everywhere forbidden. A similar rule applies to all their feasts.

Halacha 5ה׳

יוֹם שֶׁמִּתְכַּנְּסִין בּוֹ עוֹבְדֵי כּוֹכָבִים לְהַעֲמִיד לָהֶן מֶלֶךְ וּמַקְרִיבִין וּמְקַלְּסִים לֵאלֹהֵיהֶם יוֹם חַגָּם הוּא וַהֲרֵי הוּא כִּשְׁאָר חַגֵּיהֶם אֲבָל עוֹבֵד כּוֹכָבִים שֶׁעוֹשֶׂה הוּא חַג לְעַצְמוֹ וּמוֹדֶה לְכוֹכָב שֶׁלּוֹ וּמְקַלְּסוֹ בְּיוֹם שֶׁנּוֹלַד בּוֹ וְיוֹם תִּגְלַחַת זְקָנוֹ אוֹ בְּלוֹרִיתוֹ וְיוֹם שֶׁעָלָה בּוֹ מִן הַיָּם וְשֶׁיָּצָא מִבֵּית הָאֲסוּרִים וְיוֹם שֶׁעָשָׂה בּוֹ מִשְׁתֶּה לִבְנוֹ וְכַיּוֹצֵא בָּאֵלּוּ אֵינוֹ אָסוּר אֶלָּא אוֹתוֹ הַיּוֹם וְאוֹתוֹ הָאִישׁ בִּלְבַד. וְכֵן יוֹם שֶׁיָּמוּת לָהֶן בּוֹ מֵת וְיַעֲשׂוּהוּ חַג אוֹתָם הָעוֹשִׂים אֲסוּרִין אוֹתוֹ הַיּוֹם. וְכָל מִיתָה שֶׁשּׂוֹרְפִין בָּהּ כֵּלִים וּמְקַטְּרִים קְטֹרֶת בְּיָדוּעַ שֶׁיֵּשׁ בָּהּ עֲבוֹדַת כּוֹכָבִים. אֵין יוֹם הֶחָג אָסוּר אֶלָּא לְעוֹבְדֶיהָ בִּלְבַד. אֲבָל אוֹתָם שֶׁשְּׂמֵחִים בּוֹ וְאוֹכְלִין וְשׁוֹתִין וּמְשַׁמְּרִין אוֹתוֹ מִפְּנֵי מִנְהָג אוֹ מִפְּנֵי כְּבוֹד הַמֶּלֶךְ אֲבָל הֵם אֵין מוֹדִין בּוֹ הֲרֵי אֵלּוּ מֻתָּרִין לָשֵׂאת וְלָתֵת עִמָּהֶן:

The day on which idolaters meet to appoint a king, when they offer up sacrifices and sing hymns to their idols, is a feast day for them, just like their other feasts. But if an idolater institutes a personal feast day, an which he thanks his idol and lauds it, such as on his birthday, or the day when he trims his beard or the locks of his head, lands after a sea voyage, leaves prison, or gives a banquet in honour of his son, and so forth, commercial and social intercourse is only prohibited on that day, and only with that individual. So too, if idolaters, who have suffered a bereavement, keep the day of death as a solemn day, the prohibition only applies to intercourse with the individuals who so observe it, and is limited to the day. Whenever, in connection with a death, utensils are burnt and incense is offered up, it is certain that idolatry forms an element in the obsequies. Commercial and social intercourse on a feast day is prohibited with those only who worship an idol on that day, but is permitted with those who make merry and eat and drink on it, observing the day as a custom or keeping it out of respect to the sovereign, but not accepting it as a religious feast.

Halacha 6ו׳

דְּבָרִים שֶׁהֵן מְיֻחָדִין לְמִין מִמִּינֵי עֲבוֹדַת כּוֹכָבִים שֶׁבְּאוֹתוֹ מָקוֹם אָסוּר לִמְכֹּר לְעוֹבְדֵי אוֹתָהּ עֲבוֹדַת כּוֹכָבִים שֶׁבְּאוֹתוֹ הַמָּקוֹם לְעוֹלָם. וּדְבָרִים שֶׁאֵינָן מְיֻחָדִין לָהּ מוֹכְרִין אוֹתָם סְתָם. וְאִם פֵּרֵשׁ הָעוֹבֵד כּוֹכָבִים שֶׁהוּא קוֹנֶה אוֹתָם לַעֲבוֹדַת כּוֹכָבִים אָסוּר לִמְכֹּר לוֹ אֶלָּא אִם כֵּן פְּסָלוֹ מִלְּהַקְרִיבוֹ לַעֲבוֹדַת כּוֹכָבִים. לְפִי שֶׁאֵין מַקְרִיבִין חָסֵר לַעֲבוֹדַת כּוֹכָבִים:

Things, specifically appropriated to the worship of a particular idol in a certain locality, may not be sold at any time to the worshippers of that idol in that place. Things not so specially appropriated may be sold, if no mention is made of the purpose for which they are to be used. But if the gentile explicitly states that he buys them for idolatrous purposes, they may not be sold to him, unless first rendered unfit to be offered up to the idol; for the gentiles do not offer up to an idol any thing defective.

Halacha 7ז׳

הָיוּ מְעֹרָבִין דְּבָרִים הַמְיֻחָדִין עִם דְּבָרִים שֶׁאֵין מְיֻחָדִין כְּגוֹן לְבוֹנָה זַכָּה בִּכְלַל לְבוֹנָה שְׁחוֹרָה מוֹכֵר הַכּל סְתָם וְאֵין חוֹשְׁשִׁין שֶׁמָּא יְלַקֵּט הַזַּכָּה לְבַדָּהּ לַעֲבוֹדַת כּוֹכָבִים וְכֵן כָּל כַּיּוֹצֵא בָּזֶה:

If things specially appropriated to idolatry have been mixed up with things not so appropriated, as, for example, pure frankincense with the black variety, the whole may be sold, provided no mention is made of any intended idolatrous purpose. And we do not apprehend that the idolater will sort out the pure frankincense for idolatrous use; and so with analogous cases.

Halacha 8ח׳

כְּשֵׁם שֶׁאֵין מוֹכְרִין לְעוֹבֵד כּוֹכָבִים דְּבָרִים שֶׁמַּחֲזִיקִין בָּהֶן יְדֵיהֶן לַעֲבוֹדַת כּוֹכָבִים כָּךְ אֵין מוֹכְרִין לָהֶם דָּבָר שֶׁיֵּשׁ בּוֹ נֵזֶק לָרַבִּים כְּגוֹן דֻּבִּים וַאֲרָיוֹת וּכְלֵי זַיִן וּכְבָלִים וְשַׁלְשְׁלָאוֹת. וְאֵין מַשְׁחִיזִין לָהֶם אֶת הַזַּיִן. וְכָל שֶׁאָסוּר לְמָכְרוֹ לְעוֹבֵד כּוֹכָבִים אָסוּר לְמָכְרוֹ לְיִשְׂרָאֵל הֶחָשׁוּד לִמְכֹּר לְעוֹבֵד כּוֹכָבִים. וְכֵן אָסוּר לִמְכֹּר כְּלֵי נֵזֶק לְיִשְׂרָאֵל לִסְטִים:

Just as those things may not be sold to gentiles, which confirm them in idolatry, so beasts or things may not be sold to them which involve danger to the public; such as bears and lions, military arms, fetters and chains. Military arms are not to be sharpened for them. Whatever is forbidden to be sold to a gentile, may not be sold to an Israelite who is suspected of reselling it to a gentile. So too, it is forbidden to sell articles of a dangerous character to an Israelite who is a robber.

Halacha 9ט׳

הָיוּ יִשְׂרָאֵל שׁוֹכְנִים בֵּין הָעוֹבְדֵי כּוֹכָבִים וְכָרְתוּ לָהֶם בְּרִית מֻתָּר לִמְכֹּר כְּלֵי זַיִן לְעַבְדֵי הַמֶּלֶךְ וְגֵיסוֹתָיו מִפְּנֵי שֶׁעוֹשִׂים בָּהֶם מִלְחָמָה עִם צָרֵי הַמְּדִינָה לְהַצִּילָהּ וְנִמְצְאוּ מְגִנִּים עָלֵינוּ שֶׁהֲרֵי אָנוּ שְׁרוּיִין בְּתוֹכָם. עִיר שֶׁיֵּשׁ בָּהּ עֲבוֹדַת כּוֹכָבִים מֻתָּר לְהַלֵּךְ חוּצָה לָהּ וְאָסוּר לְהִכָּנֵס בְּתוֹכָהּ. הָיָה חוּצָה לָהּ עֲבוֹדַת כּוֹכָבִים מֻתָּר לְהַלֵּךְ בְּתוֹכָהּ:

Israelites who live among gentiles, and have made a covenant of peace with them are permitted to sell military arms to the king's servants and forces, since the latter use these weapons to defend the country against its enemies, and so protect us who live among them. On the day when the population of a city is celebrating a feast in honour of an idol, it is permitted to travel outside the city, but not to enter it. If the celebration is outside the city, walking within the city is permitted.

Halacha 10י׳

הַהוֹלֵךְ מִמָּקוֹם לְמָקוֹם אָסוּר לוֹ לַעֲבֹר בְּעִיר שֶׁיֵּשׁ בָּהּ עֲבוֹדַת כּוֹכָבִים. בַּמֶּה דְּבָרִים אֲמוּרִים בִּזְמַן שֶׁהַדֶּרֶךְ מְיֻחֶדֶת לְאוֹתוֹ מָקוֹם אֲבָל אִם יֵשׁ שָׁם דֶּרֶךְ אַחֶרֶת וְנִקְרָה וְהָלַךְ בְּזוֹ מֻתָּר:

A traveller from one place to another may not pass through a city where an idolatrous celebration is taking place. This is only so where the road (through the idolatrous city) is the only one leading to the traveller's destination. If there is also another road and he happened to be on the first road, he may use it.

Halacha 11י״א

אָסוּר לִבְנוֹת עִם הָעוֹבְדֵי כּוֹכָבִים כִּפָּה שֶׁמַּעֲמִידִים בָּהּ עֲבוֹדַת כּוֹכָבִים. וְאִם עָבַר וּבָנָה שְׂכָרוֹ מֻתָּר. אֲבָל בּוֹנֶה הוּא לְכַתְּחִלָּה הַטְּרַקְלִין אוֹ הֶחָצֵר שֶׁיֵּשׁ בָּהּ אוֹתָהּ הַכִּפָּה:

It is forbidden to work with gentiles in the erection of a niche in which an idol is to be set up. But if one violated this rule and built it, he may use his wages. There is no objection to the building of a palace or a courtyard which contains (or will contain) such a niche.

Halacha 12י״ב

עִיר שֶׁיֵּשׁ בָּהּ עֲבוֹדַת כּוֹכָבִים וְהָיוּ בָּהּ חֲנֻיּוֹת מְעֻטָּרוֹת וְשֶׁאֵינָן מְעֻטָּרוֹת הַמְעֻטָּרוֹת אָסוּר לֵהָנוֹת בָּהֶן בְּכָל מַה שֶּׁבְּתוֹכָן מִפְּנֵי שֶׁחֶזְקָתָן שֶׁבִּגְלַל עֲבוֹדַת כּוֹכָבִים נִתְעַטְּרוּ וְשֶׁאֵינָן מְעֵטָּרוֹת מֻתָּרוֹת בַּהֲנָאָה. חֲנֻיּוֹת שֶׁל עֲבוֹדַת כּוֹכָבִים אָסוּר לְשָׂכְרָן מִפְּנֵי שֶׁמְּהַנֶּה עֲבוֹדַת כּוֹכָבִים:

If, in a city celebrating a feast to its idol, some shops are decorated while others are not, the contents of the decorated shops may not be used, the presumption being that they are decorated in honour of the idol. But the goods in the undecorated shops may be used. One may not become a tenant of shops that are the property of an idolatrous corporation, since this would be to the advantage of idolatry.

Halacha 13י״ג

הַמּוֹכֵר בַּיִת לַעֲבוֹדַת כּוֹכָבִים דָּמָיו אֲסוּרִים בַּהֲנָאָה וְיוֹלִיכֵם לְיָם הַמֶּלַח. אֲבָל עוֹבְדֵי כּוֹכָבִים שֶׁאָנְסוּ יִשְׂרָאֵל וְגָזְלוּ בֵּיתוֹ וְהֶעֱמִידוּ בּוֹ עֲבוֹדַת כּוֹכָבִים דָּמָיו מֻתָּרִין, וְכוֹתֵב וּמַעֲלֶה בְּעַרְכָּאוֹת שֶׁלָּהֶם:

If one sells a house for purposes of idolatry, the purchase money is forbidden to be used and must be cast into the Dead Sea. But if idolaters overpowered an Israelite, took his house by force and set up an idol in it, its purchase money may be used; and the owner draws up and registers a claim in the gentile courts. Flutes belonging to idolaters may not be used for music at obsequies (of Israelites).

Halacha 14י״ד

וַחֲלִילִין שֶׁל עוֹבְדֵי כּוֹכָבִים אָסוּר לִסְפֹּד בָּהֶן. הוֹלְכִין לְיָרִיד שֶׁל עֲבוֹדַת כּוֹכָבִים וְלוֹקְחִין מֵהֶן בְּהֵמָה עֲבָדִים וּשְׁפָחוֹת בְּגֵיוּתָן וּבָתִּים וְשָׂדוֹת וּכְרָמִים וְכוֹתֵב וּמַעֲלֶה בְּעַרְכָּאוֹת שֶׁלָּהֶן מִפְּנֵי שֶׁהוּא כְּמַצִּיל מִיָּדָם. בַּמֶּה דְּבָרִים אֲמוּרִים בְּלוֹקֵחַ מִבַּעַל הַבַּיִת שֶׁאֵינוֹ נוֹתֵן מֶכֶס אֲבָל הַלּוֹקֵחַ שָׁם מִן הַתַּגָּר אָסוּר מִפְּנֵי שֶׁהוּא נוֹתֵן מֶכֶס וְהַמֶּכֶס לַעֲבוֹדַת כּוֹכָבִים וְנִמְצָא זֶה מְהַנֶּה עֲבוֹדַת כּוֹכָבִים. עָבַר וְלָקַח מִן הַתַּגָּר. אִם בְּהֵמָה לָקַח מְנַשֵּׁר פַּרְסוֹתֶיהָ מִן הָאַרְכֻּבָּה וּלְמַטָּה. וְאִם כְּסוּת וְכֵלִים לָקַח יֵרָקְבוּ. לָקַח מָעוֹת וּכְלֵי מַתָּכוֹת יוֹלִיכֵם לְיָם הַמֶּלַח. לָקַח עֶבֶד לֹא מַעֲלִים וְלֹא מוֹרִידִין:

One may attend a fair of gentiles and make purchases there of cattle, heathen male and female slaves, houses, fields and vineyards. The purchaser draws up the records of sale and registers them in the gentile courts, since he is, as it were, salvaging his property from them. This however, only applies to purchases from a private individual who does not pay market dues. But purchases from a dealer are forbidden to be used, since the dealer pays toll which goes to the idol; and so the purchaser is benefiting idolatry. In case this rule was violated and any thing had been bought from a dealer, if the purchase is a domestic animal, its hoofs must be hacked off below the joint of the leg; if, it is a garment or utensils, they should be suffered to decay; if it is coin or metal plate, they should be cast into the Dead Sea; if a slave, he is neither rescued from a pit nor raised from it.** Idolaters who recognised no law were not to be aided nor persecuted. See Aboda Zara 13B.

Halacha 15ט״ו

עוֹבֵד כּוֹכָבִים שֶׁעָשָׂה לִבְנוֹ אוֹ לְבִתּוֹ מִשְׁתֶּה אָסוּר לֵהָנוֹת מִסְּעֻדָּתוֹ. וַאֲפִלּוּ לֶאֱכל וְלִשְׁתּוֹת הַיִּשְׂרָאֵל מִשֶּׁלּוֹ שָׁם אָסוּר הוֹאִיל וּבִמְסִבַּת עוֹבְדֵי כּוֹכָבִים אֲכָלוֹ. וּמֵאֵימָתַי אָסוּר לֶאֱכל אֶצְלוֹ מִשֶּׁיַּתְחִיל לַעֲסֹק וּלְהָכִין צָרְכֵי סְעֻדָּה וְכָל יְמֵי הַמִּשְׁתֶּה וּלְאַחַר יְמֵי הַמִּשְׁתֶּה שְׁלֹשִׁים יוֹם. וְאִם עָשָׂה סְעֻדָּה אַחֶרֶת מֵחֲמַת הַנִּשּׂוּאִין אֲפִלּוּ לְאַחַר שְׁלֹשִׁים יוֹם אָסוּר עַד שְׁנֵים עָשָׂר חֹדֶשׁ. וְכָל הַהַרְחָקָה הַזֹּאת מִפְּנֵי עֲבוֹדָה שֶׁל כּוֹכָבִים הוּא שֶׁנֶּאֱמַר (שמות לד טו) "וְקָרָא לְךָ וְאָכַלְתָּ מִזִּבְחוֹ" (שמות לד טז) "וְלָקַחְתָּ מִבְּנֹתָיו לְבָנֶיךָ וְזָנוּ" וְגוֹ':

When an idolater gives a feast to celebrate the wedding of his son or daughter, it is forbidden to partake of the banquet. An Israelite is even forbidden to eat there his own food or drink his own liquor, as he would be consuming it in the company of idolaters.**** on their idolatrous feast. For how long is he forbidden to eat with them ? From the moment when the idolater begins to busy himself with preparations for the feast; and the prohibition is in force, during the time that the feast is held and continues for thirty days after its termination. If the idolater gives a second feast, in honour of the marriage, even after the expiration of thirty days from the conclusion of the former feast, the prohibition extends for a twelve-month. The purpose of this separation is to avoid idolatry, as it is said, "…. and one will call thee and thou wilt eat of his sacrifice; and take of their daughters unto thy sons, and their daughters will go astray after their gods and make thy sons go astray after their gods". (Ex. 34:15-16).

Halacha 16ט״ז

בַּת יִשְׂרָאֵל לֹא תֵּינִיק אֶת בְּנָהּ שֶׁל עוֹבֶדֶת כּוֹכָבִים מִפְּנֵי שֶׁמְּגַדֶּלֶת בֵּן לַעֲבוֹדַת כּוֹכָבִים. וְלֹא תְּיַלֵּד אֶת הַנָּכְרִית עַכּוּ"ם אֲבָל מְיַלֶּדֶת הִיא בְּשָׂכָר מִשּׁוּם אֵיבָה. וְהַנָּכְרִית עַכּוּ"ם מְיַלֶּדֶת אֶת בַּת יִשְׂרָאֵל וּמֵינִיקָה אֶת בְּנָהּ בִּרְשׁוּתָהּ כְּדֵי שֶׁלֹּא תַּהַרְגֶנּוּ:

An Israelite woman should not suckle the infant of a non-Israelite mother, for she would be bringing up a child to idolatry. Nor should she act as a midwife to a non-Israelite woman; but she may attend professionally for a fee, so as to prevent ill-will. A gentile woman may be engaged as midwife to an Israelite woman or as wet-nurse for her babe, provided the gentile nurse is under the mother's supervision, so that she will not kill the infant.

Halacha 17י״ז

הַהוֹלְכִין לְתַרְפּוּת עַכּוּ"ם אָסוּר לָשֵׂאת וְלָתֵת עִמָּהֶן וְהַבָּאִים מֻתָּרִין וְהוּא שֶׁלֹּא יִהְיוּ קְשׁוּרִין זֶה בָּזֶה שֶׁאִם הָיוּ קְשׁוּרִין שֶׁמָּא דַּעְתָּן לַחֲזֹר. יִשְׂרָאֵל הַהוֹלֵךְ לְתַרְפּוּת עַכּוּ"ם, בַּהֲלִיכָה מֻתָּר לָשֵׂאת וְלָתֵת עִמּוֹ שֶׁמָּא יַחֲזֹר בּוֹ וּבַחֲזִירָה אָסוּר. יִשְׂרָאֵל מוּמָר בֵּין בַּהֲלִיכָה בֵּין בַּחֲזִירָה אָסוּר:

To do business with pilgrims to idolatrous shrines, while they are on their journey thither is forbidden, but is permitted with those who are returning, providing they are not travelling in companies, the members of which are closely attached to each other; for in this case they may have it in mind to return to the shrine. If an Israelite is proceeding to an idolatrous shrine, one may do business with him while he is on his way thither, for possibly he may turn back; but it is not permitted when he is returning. It is forbidden to trade with an apostate Israelite while he is on his way to an idolatrous shrine or returning thence.

Halacha 18י״ח

יִשְׂרָאֵל שֶׁהָלַךְ לְיָרִיד שֶׁל עַכּוּ"ם, בַּחֲזִירָה אָסוּר לָשֵׂאת וְלָתֵת עִמּוֹ שֶׁמָּא עַכּוּ"ם מָכַר לָהֶן שָׁם, וּדְמֵי עַכּוּ"ם בְּיַד יִשְׂרָאֵל אֲסוּרִים בַּהֲנָאָה וּבְיַד עַכּוּ"ם מֻתָּרִין בַּהֲנָאָה, וּמִפְּנֵי זֶה נוֹשְׂאִין וְנוֹתְנִין עִם עַכּוּ"ם הַבָּא מִן הַתַּרְפּוּת שֶׁל עַכּוּ"ם וְאֵין נוֹשְׂאִין וְנוֹתְנִין עִם יִשְׂרָאֵל הַבָּא מִן הַתַּרְפּוּת הַהוּא וְלֹא עִם יִשְׂרָאֵל מוּמָר לֹא בַּהֲלִיכָתוֹ וְלֹא בַּחֲזִירָתוֹ:

If an Israelite went to an idolaters' fair, it is forbidden to trade with him on his return journey, for fear that he may have sold an idol there, and the price of an idol in an Israelite's possession may not be used. If the price is in an idolater's possession, it may be used. Hence, trading is permitted with an idolater on his return from an idolatrous shrine, but not with an Israelite when he comes from such a shrine, nor with an apostate Israelite either on his journey thither or on his return.

Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain

English: The Mishneh Torah by Maimonides, tr. Moses Hyamson, 1937-1949 — public domain