Jesus didn’t specifically mention homosexuals. But he condemned the practices of those who engaged in sin with homosexual acts being immoral activity. He said in Matthew 10:11-15 that when his followers entered a city which didn’t receive them, they should shake off the dust off of their feet. God would tolerate Sodom and Gomorrha in the day of judgment more than he would the city that rejected his followers. His listeners knew the association with homosexuality those two cities had. So in a round about way he mentioned homosexual; just not directly.
Homosexuality itself is not a sin. Jesus said in Matthew 19:12 that some were born eunuchs while others were made to be that for the kingdom of Heaven. If you wanted to stretch the definition of eunuch to include homosexuals, you could do that. As for the practice of homosexuality, I’m sure he would have condemned it since it is considered a moral sin. He may have been considered one too by the Pharisees since he had no sexual relations with women. His purpose on earth was not to be a father. He came to redeem the world from sin.
Jesus told his followers to love their enemies and to treat those who despitefully use them well. God is the final judge and they will stand before him to answer for their sins. Those who reject Christ will be cast into Hell until the Great White Throne Judgment when God ultimately casts unbelievers into the Lake of Fire.
If a homosexual is celibate, I don’t see why God would have to condemn him for sexual sin. It is not stated in the Bible, but there may have been homosexuals that became believers due to Christ’s preaching. Some people want to believe the Apostle John was a homosexual since he leaned upon Christ’s breast at the last supper. But with diners reclining around a low table which was the custom in the Middle East, according to many scholars, John just happened to be the one next to Jesus. Jesus would have supported him as he would have supported the person reclining next to him.
In the Old Testament, homosexuals were often stoned for immoral behavior. When some condemned David and threw stones at him after he became King, Joab his military leader wanted permission to kill them. But David told him to leave them alone. He knew that God would be their judge and that maybe he deserved their anger since he had defeated the House of Saul.
In the New Testament, when the Jews wanted to cause trouble for the Apostle Paul, they would rile up those of the baser sort which has been interpreted as meaning homosexuals to speak against him. Paul never once commanded God to smite them, which he could have. But he knew that God would eventually judge them and that maybe the Holy Spirit would convict some to turn from their evil ways and turn to God.
The Apostle Paul wrote to the church in Corinth about how bad some of the members had been which probably included homosexual behavior. He even wrote that God had given up some people to homosexual behavior. But he still wanted them to become believers. The Holy Spirit would deal in their hearts and convict them of sin so they could repent of their sin.
Homosexuals and heterosexuals that practice immorality are equally guilty of sin. They will be judged by God for what they did. A person’s sexual preference has nothing to do with how sinful they are. We are all sinful and need to accept Christ as our Savior. God can save all people.