Parshas Kedoshim · Passuk 19:19
Chabad.org — English translation + Rashi
Torah Temimah on Vayikra 19:19 · Yerushalmi Kilayim 8:2
You shall not mate — Might one not even place males with females? Scripture says: you shall not mate your animal — only active mating is forbidden.
Classical derasha (TT)
Mere co-housing of males and females of the same kind is not the Torah ban; the act of mating is.