The two angels who were with the Lord at Mamre (compare 18:2, 22) went on to Sodom. They knew the people there were very wicked. Even though Lot welcomed them, they first chose to stay in the public square instead of going into his house.