Babylonian Talmud, Yevamot 76a
תלמוד בבלי יבמות עו.
א"ר הונא נשים המסוללות זו בזו פסולות לכהונה ואפילו לרבי אלעזר דאמר פנוי הבא על הפנויה שלא לשם אישות עשאה זונה ה"מ איש אבל אשה פריצותא בעלמא
Rav Huna said: Women who rub against each other (nashim hamesolelot) are prohibited to marry a priest. And even according to R.Eliezer, who says that when a single man has intercourse with a single woman she becomes a zonah (who is no longer fit to marry a priest), that is true when the premarital sex was with a man, but sex with a woman is mere indecency. [Translation by Rabbi Steven Greenberg]
Time Period: Rabbinic (Maccabees through the Talmud)