Even if Jesus didn’t say anything about it, His Father did; punctuated with fire and brimstone.
“My doctrine is not mine, but his that sent me.” (John 7:16)
God the father and Jesus Christ do not preach different doctrines about the filthy abomination that sodomy is.
“If a man also lie with mankind, as he lieth with a woman, both of them have committed an abomination: they shall surely be put to death; their blood shall be upon them.” (Leviticus 20:13)
This is Jesus’ doctrine.