I do believe he was righteous and that sin troubled him. But why stay in a place like that?
He should have left. He stayed because he enjoyed being seen in the city gates and being thought well of.
Remember, he started far in the country with Abraham. He should have given Abraham the preference in the land and sinned in pitching towards Sodom. And the subtlety of sin drew him closer and closer until he dwelt in its midst. So he may have been troubled by sin, but not enough to leave it.
The story highlights the great draw that sin has on the flesh; even the righteous. And also the faithfulness of God to save his people from their sin.
Remember where lot came from brother and why he left home ? It was based on Abraham’s promise remember ?
“So Abram departed, as the LORD had spoken unto him; and Lot went with him: and Abram was seventy and five years old when he departed out of Haran.”
Genesis 12:4 KJV
so in my head God promised Abraham Abraham said To lot “ I’ve heard from the lord and I’m leaving he is going to bless the world through me “
and lot said “ can I come along uncle Abram ? “
then remember this part notice how the nephew doesn’t offer Abraham the best but crosses it himself and also what immediately follows
“And Lot also, which went with Abram, had flocks, and herds, and tents. And the land was not able to bear them, that they might dwell together: for their substance was great, so that they could not dwell together. And there was a strife between the herdmen of Abram's cattle and the herdmen of Lot's cattle: and the Canaanite and the Perizzite dwelled then in the land. And Abram said unto Lot, Let there be no strife, I pray thee, between me and thee, and between my herdmen and thy herdmen; for we be brethren. Is not the whole land before thee? separate thyself, I pray thee, from me: if thou wilt take the left hand, then I will go to the right; or if thou depart to the right hand, then I will go to the left. And Lot lifted up his eyes, and beheld all the plain of Jordan, that it was well watered every where, before the LORD destroyed Sodom and Gomorrah, even as the garden of the LORD, like the land of Egypt, as thou comest unto Zoar. Then Lot chose him all the plain of Jordan; and Lot journeyed east: and they separated themselves the one from the other. And the LORD said unto Abram, after that Lot was separated from him, Lift up now thine eyes, and look from the place where thou art northward, and southward, and eastward, and westward:”
Genesis 13:5-11, 14 KJV
Also lot had a lot of possession and property and land there I know you don’t like long posts brother and I’m sorry but if your able to keep following the thought you’ll see why
so one more look at the situation and Abram the Hebrews actions and what triggers it , and watch what again immediately follows
( the battle of the nine foreign kings )
“And
they took all the goods of Sodom and Gomorrah, and all their victuals, and went their way. And
they took Lot, Abram's brother's son, who dwelt in Sodom, and his goods, and departed.
And there came one that had escaped, and
told Abram the Hebrew; for he dwelt in
the plain of Mamre ( really important location )
the Amorite, brother of Eshcol, and brother of Aner: and these were confederate with Abram.
And
when Abram heard that his brother was taken captive, he armed his trained servants, born in his own house, three hundred and eighteen, and
pursued them unto Dan.
And he divided himself against them, he and his servants, by night, and
smote them, and pursued them unto Hobah,
which is on the left hand of Damascus. And he brought back all the goods, and
also brought again his brother Lot, and his goods, and the women also, and the people.
And
Melchizedek king of Salem brought forth bread and wine: and he was the priest of the most high God.
And he blessed him, and said,
Blessed be Abram of the most high God, possessor of heaven and earth:
and blessed be the most high God, which hath delivered thine enemies into thy hand. And he gave him tithes of all.”
Genesis 14:11-16, 18
If you follow the rest of the story you see how this led to soddom and Gomorrah’s corruption but lot owned a lot of the lands and had a lot of properties and flocks and people servants and workers ect
he was sort of tied to it and rotted tangibly speaking and it all became corrupt around him later is my point the corruption surrounded lot , it wasn’t that he liked seeing it or being thought well of he wasn’t he was rejected think of it a morally good guy in an evil city ? They aren’t going to praise him and think well
Of him theyll clown and persecute him like evil rulers do Christian’s
Sincerely apologize for the length I know you don’t love that part