“In precisely the same way, Genesis 19 records the events surrounding Sodom and Gomorrah’s destruction, but it tells us nothing about why God determined to destroy the cities in the first place. Those who point to the infamous scene of the men surrounding the house as evidence that God destroyed the cities because of homosexuality are misinterpreting the intent of the passage.“
- https://www.affirmingtheology.org/why-did-god-really-destroy-sodom-and-gomorrah/