I’m confident that we’ve all been told why Sodom was destroyed and what their sin was. In Ezekiel 16:49 the sin of Sodom is expressly stated and it is not what you’ve been told.
“‘Now this was the sin of your sister Sodom: She and her daughters were arrogant, overfed and unconcerned; they did not help the poor and needy.” (NIV)
For what it’s worth, this is in a passage that may have never been read in a church worship service. I’m saying that it represents the Lord God reading the riot act to the people of Israel.