סימן קסז סעיף יד
אָסוּר לִתֵּן מַתְּנַת חִנָם לְגוֹי שֶׁאֵינוֹ מַכִּירוֹ, דִּכְתִיב, וְלֹא תְחָנֵם, וְדָרְשֵׁינָן לֹא תִתֵּן לָהֶם מַתְּנַת חִנָם. אֲבָל אִם הוּא מַכִּירוֹ, לֹא הֲוֵי מַתְּנַת חִנָּם, שֶׁגַּם הוּא יְשַּׁלֵּם גְּמוּלוֹ, אוֹ כְּבָר שִׁלַּם לוֹ, וַהֲוֵי כְּמוֹ מְכִירָה.
It is forbidden to give a gift to a Gentile that is not your acquaintance,14All Gentiles are included in the prohibition, even Moslems. Beis Yosef (Choshen Mishpat 249). Shach 151:18. as it is written, "You shall not show them grace;"15Deuteronomy 7:2. the word תְחָנֵם is interpreted as grace and also חִנָם which means for no reason. and this is explained, "You shall not give them a free gift." But, if he is an acquaintance, it is not considered a free gift, for in time he will return this favor, or he has already compensated for it, and it is like a sale (and not a gift).
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)