Romans 1
26 For this reason God gave them up to vile passions. For even their [i]women exchanged the natural use for what is against nature. 27 Likewise also the [j]men, leaving the natural use of the [k]woman, burned in their lust for one another, men with men committing what is shameful, and receiving in themselves the penalty of their error which was due.

If you google what the “penalty of their error” was, you get a lot of speculation. The best answer I found was the penalty of their error was their own perversion. The body was now corrupt and defiled, separated from the Lord.

When it comes to this discussion it seems to divide people greatly. My own studies seem to be lacking.