And there was the Pharaoh, and many other communities before him, and the cities overthrown (where Lot’s people lived): all of them indulged in the unpardonable sins
And Firaawn (Pharaoh) came, (i.e., after Thamud and Aad) and whoever were before him and the (cities of) falsehood, (i.e., the people of Lut "Lot") with their (habitual) sinfulness
Pharaoh, those before them, and the destroyed cities, they all made the same mistake!
Al-muntakhab fi tafsir al-Qur'an al-Karim
And there were Pharaoh and those before him and those of the corrupt cities who wickedly committed the unprecedented sin; all of whom did evil in exchange for good