The Shulchan Aruch · Even HaEzer
אבן העזר כ״דEven HaEzer 24
Siman 24 of 178 in Even HaEzer — 1 se'if
הלכות אישותLaws of Marriage· siman 24
Se’if 1א׳
לֹא נֶחְשְׁדוּ יִשְׂרָאֵל עַל מִשְׁכַּב זָכָר וְעַל הַבְּהֵמָה, לְפִיכָךְ אֵין אִסוּר לְהִתְיַחֵד עִמָּהֶן, וְאִם נִתְרַחֵק אֲפִלּוּ מִיִּחוּד זָכָר וּבְהֵמָה, הֲרֵי זֶה מְשֻׁבָּח. וּגְדוֹלֵי הַחֲכָמִים הָיוּ מַרְחִיקִין הַבְּהֵמָה, כְּדֵי שֶׁלֹּא יִתְיַחֲדוּ עִמָּהּ. וּבַדּוֹרוֹת הַלָּלוּ שֶׁרַבּוּ הַפְּרִיצִים, יֵשׁ לְהִתְרַחֵק מִלְּהִתְיַחֵד עִם הַזָּכָר:
We do not suspect a [male] Jew of sleeping with a man, or of sleeping with an animal. Therefore, there is no prohibition of being secluded with them. If one distances himself even from seclusion with a man or animal, it is praiseworthy. The great wise men would distance an animal so as not to be secluded with it. In these generations, where licentious people have increased, one should distance himself from seclusion with a man.
Shulchan Aruch, Even HaEzer — Torat Emet 357 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0