sodomy:  The term sodomy commemorates the ancient Palestinian city of Sodom, which according to the Bible was a hotbed of unnatural vice (‘But before they lay down, the men of the city, even the men of Sodom, compassed the house round, both old and young, all the people from every quarter. And they called unto Lot, and said unto him, Where are the men which came in to thee this night? Bring them out unto us, that we may know them.
And Lot went out at the door unto them, and shut the door after him. And said, I pray you, brethren, do not so wickedly. Behold now, I have two daughters which have not known man; let me, I pray you, bring them out unto you, and do ye to them as is good in your eyes: only unto these men do nothing; for therefore came they under the shadow of my roof’, Genesis 19:4–8). Anal intercourse and allied practices were known in late Latin as peccātum Sodomīticum ‘sin of Sodom’, and from this was coined the medieval Latin term sodomia – whence English sodomy.
The abusive sod  is short for the related sodomite .
c. 1300, "unnatural sexual relations," such as those imputed to the inhabitants of Biblical Sodom, especially between persons of the same sex but also with beasts, from Old French sodomie, from Late Latin peccatum Sodomiticum "anal sex," literally "the sin of Sodom," from Latin Sodoma. In Middle English also synne Sodomyke (early 14c.).