Read Leviticus 18.
Read Leviticus 18:22 to be more precise.
Leviticus 18:20-30
20: And you shall not lie sexually with your neighbor’s wife and so make yourself unclean with her.
21: And you shall not give any of your children to offer them to Molech, and so profane the name of your God: I am the LORD.
22: You shall not lie with a male as with a woman; it is an abomination.
23: And you shall not lie with any animal and so make yourself unclean with it, neither shall any woman give herself to an animal to lie with it: it is perversion.
24: Do not make yourselves unclean by any of these things, for by all these the nations I am driving out before you have become unclean,
25: and the land became unclean, so that I punished its iniquity, and the land vomited out its inhabitants.
26: But you shall keep my statues and my rules and do none of these abominations, either the native or the stranger who sojourns among you
27: (for the people of the land, who were before you, did all of these abominations, so that the land became unclean),
28: lest the land vomit you out when you make it unclean, as it vomited out the nation that was before you.
29: For everyone who does any of these abominations, the persons who do them shall be cut off from among their people.
30: So keep my charge never to practice any of these abominable customs that were practiced before you, and never to make ourselves unclean by them: I am the LORD your God.