Which God says that homosexuality is a sin? And I’m asking about cases where God actually comes down (either directly or indirectly) and says “no, that’s a sin”, not about cases where some guy says “nah, that’s prolly a sin”. Asking because I’m curious about how homosexuality is depicted in religious texts.

The one from the Bible says it’s an abomination

www.biblegateway.com/verse/en/Leviticus 18%3A22

Leviticus 18:22 - Bible Gateway

I like this translation

You must not have sexual intercourse with a man as you would with a woman; it is a detestable practice.

it just sounds like a confused peasant

OK as long as man doesn’t fuck a man in the vagina it’s good. Also lesbian are also not forbidden.
Interesting to see what’s the original of the quote. I’ve seen one bibleist examined different Bible quotes and explained that in original (Greek) they’re not related to homosexuality, and was against rape or promiscuity. And his take was there is nothing against homosexuality in Bible
IIRC the original was aimed at pederasty, which was still common in Greece at the time.
I don’t know much at all about the Bible, but is there a reason why in almost all the translations (and interpretations) it appears assumed that the reader is a man themselves? Like, what if a woman is reading? What does it mean then?