Берешит 38:26 Галаха: Mishneh Torah, Marriage

וַיַּכֵּ֣ר יְהוּדָ֗ה וַיֹּ֙אמֶר֙ צָֽדְקָ֣ה מִמֶּ֔נִּי כִּֽי־עַל־כֵּ֥ן לֹא־נְתַתִּ֖יהָ לְשֵׁלָ֣ה בְנִ֑י וְלֹֽא־יָסַ֥ף ע֖וֹד לְדַעְתָּֽה׃

Иуда признал их и сказал: 'Она праведнее меня; потому что я дал ее не сыну Моему.' И он снова ее не знал.

Mishneh Torah, Marriage

Before the giving of the Torah, a man would meet a woman at the market and, if both of them wanted to, he would give her her wages and have intercourse with her and thereafter be on his way. Such a woman is called a cult-prostitude. Since the giving of the Torah, the cult-prostitude has become forbidden, for it says "There shall be no cult-prostitude among the daughters of Israel". Therefore, if one has intercourse after the manner of prostitution, without a legal and legitimate marriage, he shall receive Torah lashes because he had had intercourse with a prostitute.