Lot had looked toward Sodom (Genesis 13:10), seeing how he could prosper there, but two angels, appearing as men, visited Abraham and then left him and they saw Sodom differently.
The Bible says,
“Then the men rose from there and looked toward
Sodom, and Abraham went with them to send them on the way” (Genesis 18:16).
These men/angels did not look toward Sodom to see how they could prosper there, but they looked toward it to destroy it, and Abraham knew it, which led him to plead for Sodom later in the story, if as little as ten righteous people were found in it, hoping to spare his nephew Lot.
God sees things differently than we do. This does not mean that we cannot look to a place to see how we can prosper, but we do have to remember God and whether He wants us to go to a certain place, for it might be on His list to curse.