In Genesis the verse is And Judah said unto Onan, Go in unto thy brother's wife, and marry her, and raise up seed to thy brother.
The Book of Genesis (from the Latin Vulgate, in turn borrowed or transliterated from Greek γένεσις, meaning "origin"; Hebrew: בְּרֵאשִׁית, Bərēšīṯ, "In [the] beginning") is the first book of the Hebrew Bible (the Tanakh) and the Christian Old Testament.
The basic narrative expresses the central theme: God creates the world and appoints man as his regent, but man proves disobedient and God destroys his world through the Flood. The new post-Flood world is equally corrupt, but God does not destroy it, instead calling one man, Abraham, to be the seed of its salvation. At God's command Abraham descends from his home into the land of Canaan, given to him by God, where he dwells as a sojourner, as does his son Isaac and his grandson Jacob. Jacob's name is changed to Israel, and through the agency of his son Joseph, the children of Israel descend into Egypt, 70 people in all with their households, and God promises them a future of greatness. Genesis ends with Israel in Egypt, ready for the coming of Moses and the Exodus. The narrative is punctuated by a series of covenants with God, successively narrowing in scope from all mankind (the covenant with Noah) to a special relationship with one people alone (Abraham and his descendants through Isaac and Jacob). Torah
The Hebrew Bible (also Hebrew Scriptures, Jewish Bible (Judaica Bible); Latin: Biblia Hebraica) is a term used by biblical scholars to refer to the Tanakh (Hebrew: תנ"ך), the canonical collection of Jewish texts, which is the common textual source of the several canonical editions of the Christian Old Testament. These texts are composed mainly in Biblical Hebrew, with some passages in Biblical Aramaic (in the books of Daniel, Ezra and a few others).
The content, to which the Protestant Old Testament closely corresponds, does not act as source to the deuterocanonical portions of the Roman Catholic, nor to the Anagignoskomena portions of the Eastern Orthodox Old Testaments. The term does not comment upon the naming, numbering or ordering of books, which varies with later Christian biblical canons. Er
Sex occurs frequently in the Hebrew Bible, with extensive laws regulating it.
The Bible refers to homosexuality several times. Vayeshev