As to the second, regarding punishment, he adds: But on the day that Lot went out from Sodom, through the equity of divine justice that delivers: Genesis 19: "The Angels seized the hand of Lot and the hand of his wife and the hand of his two daughters, because the Lord spared them. They led him out and placed him outside the city, and there they stationed themselves beside him, saying: Save your soul," etc.; and below in the same chapter: "The Lord delivered Lot from the overthrow of the cities in which he had dwelt." In this, Lot bears the type of the just, who go out from the midst of the wi...cked; whence the Gloss: "Lot, who is interpreted as turning aside, is the people of the elect, who, while dwelling in Sodom, that is, among the reprobate, as a stranger, turns aside from their crimes as much as he can"; and this according to that passage in 2 Corinthians 6: "Go out from the midst of them and be separated, says the Lord, and touch not the unclean thing, and I will receive you and will be a father to you, and you shall be to me sons and daughters." Therefore divine justice delivered just Lot, and on the contrary destroyed the impious people.
And therefore he adds: It rained fire and brimstone from heaven and destroyed them all, namely the Lord, through the severity of avenging justice: Genesis 19: "Therefore the Lord rained upon Sodom and Gomorrah brimstone and fire from heaven from the Lord, and he overthrew these cities and the entire surrounding region, all the inhabitants of the cities, and everything growing from the earth."
And note that he says pointedly that the Lord rained from the Lord, because, although all judgment is owed to the Lord the Son, according to that passage in John 5: "The Father judges no one, but has given all judgment to the Son," "because he is the Son of man"; nevertheless the judgment of this sin is specially owed to him, because it is directly against the incarnate Word, and it makes the nature which the Son of God made heavenly, angelic, and divine viler than brute nature, by subverting the laws of nature which brute animals observe. And therefore this vice is punished not only with fire but also with brimstone, on account of the burning and the stench of most disordered lust. Concerning the burning, Romans 1: "They burned in their desires toward one another, males working shame upon males"; concerning the stench, Isaiah 34: "From their corpses shall rise a stench, the mountains shall waste away from their blood," etc.; and the Psalm: "They are corrupt and have become abominable," etc. On account of these things they were deservedly consumed by fire and brimstone; whence Bernard: "The flame of Gehenna, brooking no delay, came beforehand to destroy this accursed nation, and moreover fire and the spirit of tempests consumed the very earth itself, as being privy to so great a disgrace."
Source: Commentary on Luke, Chapter 17