Initial the Lord had told Abraham that they had come to see if the cry that came out of Sodom and Gomorrah if it was true
Genesis 18:20-21 ESV
So the Lord told Abraham, “I have heard a great outcry from Sodom and Gomorrah, because their sin is so flagrant. 21 I am going down to see if their actions are as wicked as I have heard. If not, I want to know.”
But later the angels told Lot that they had come to destroy those cities
Genesis 19:12-13 NLT
12 Meanwhile, the angels questioned Lot. “Do you have any other relatives here in the city?” they asked. “Get them out of this place—your sons-in-law, sons, daughters, or anyone else. 13 For we are about to destroy this city completely. The outcry against this place is so great it has reached the Lord, and he has sent us to destroy it.”
But this was not before the men of Sodom had tried to be intimate with the angels
Genesis 19:5 ESV
5 They shouted to Lot, “Where are the men who came to spend the night with you? Bring them out to us so we can have sex with them!”
Was it the actions of these men that precipitated this action?