In this week’s Torah portion parshat Vayeira Genesis 19,5 it says about the wicked people of Sedom who got destroyed because of their sins:
וַיִּקְרְא֤וּ אֶל־לוֹט֙ וַיֹּ֣אמְרוּ ל֔וֹ אַיֵּ֧ה הָאֲנָשִׁ֛ים אֲשֶׁר־בָּ֥אוּ אֵלֶ֖יךָ הַלָּ֑יְלָה הוֹצִיאֵ֣ם אֵלֵ֔ינוּ וְנֵדְעָ֖ה אֹתָֽם׃
And the men of Sedom called to Lot and they said to him: "where are the men you invited tonight bring them out, so that we should cohabit with them*"
*Rashi:"(ונדעה אתם" - במשכב זכר כמו אשר לא ידעו איש (ב"ר
In fact, that's where the term sodomy comes from.
Also the very parsha that that prohibits homosexuality says that the people of the land of Knaan did such abominations and G-d was disgusted by their actions and threw them out of the land in Leviticus chapter 18:
ואת זכר לא תשכב משכבי אשה תועבה הוא....אל תטמאו בכל אלה כי בכל אלה נטמאו הגוים אשר אני משלח מפניכם...ותטמא הארץ ואפקד עונה עליה ותקא הארץ את ישביה...כי את כל התועבת האל עשו אנשי הארץ אשר לפניכם ותטמא הארץ
Don't practice homosexuallity it is an abomination... Don't do these abominations because the nations which i am throwing out of the land did these impure actions... The land became impure i remembered its sins and the land (of Knaan) regurgitated its inhabitents... For all these abominations they did and the land became contaminated from their sins.