For the source text click/tap here: Avodah Zarah 14
To download, click/tap here: PDF
According to the Mishna, there were places in Israel where Jews sold behemot dakot – small, domesticated animals (sheep and goats) – to their non-Jewish neighbors, while in other places they did not. Behemot gasot – large cattle – however, were not sold to non-Jews in any place.
The Gemara explains that the source for these restrictions is not because they were worried about pagan idol worship, rather they stem from other halakhic concerns. Behemot gasot were used for field work that would be done on Shabbat as well as during the week. Since Jews are obligated to ensure that their animals do not work on Shabbat, they cannot lend their animals or rent them to non-Jews if they will be used on Shabbat. Since we are concerned that people would mistake purchase for renting or lending, even selling such animals was prohibited.
The reason given for restricting the sale of behemot dakot is a different one. The Gemara explains that bestiality was commonplace among some of the non-Jews who lived in Israel in the time of the Mishna. Since sexual relations with animals is forbidden to non-Jews as one of the seven Noaḥide laws, it would be forbidden for a Jew to aid and abet such behavior. Understandably, in places where such behavior was unheard of among the non-Jews, sale of these animals was permitted.