The Bible has little to say about the subject of homosexuality. Only seven passages address the matter in a direct way, four of them in the Old Testament (Genesis 19:1–26; Judges 19; and Leviticus 18:22 and 20:13) and three in the New Testament (1 Corinthians 6:9–10; 1 Timothy 1:10; and Romans 1:26–27) This is surprising, since non-canonical sources indicate that the phenomenon was well known both in Old Testament and in New Testament times.
Two of the relevant texts in the Old Testament are lengthy narratives. One is the story about Lot's visitors at Sodom (Genesis 19:1–14). The other is a rather detailed description of what happened to a Levite from Ephraim who stopped at Gibeah on his way home from Bethlehem (Judges 19:1–30).
These two accounts are so much alike that scholars think that the Sodom story may have influenced the way the Gibeah story was reported. The two sketches follow an almost identical pattern. They even contain the same key words and phrases. In both stories the townspeople demand: "bring … that we may know …" Because of their close similarity, the two tales should be studied together.