Your Lord would never destroy a society until He had sent to its capital a messenger, reciting Our revelations to them. Nor would We ever destroy a society unless its people persisted in wrongdoing.Quran 28:59 [Surah Al-Qasas, The Stories]
Surah al-Qasas [The Story] takes it name from being mentioned in [28:25], ‘Then one of the two women came to him walking with shyness. She said, “Indeed, my father invites you that he may reward you for having watered for us.” So when he came to him and related to him the story, he said, “Fear not. You have escaped from the wrongdoing people.”

This Surah has 88 Ayat.
وَمَا كَانَ رَبُّكَ مُهۡلِكَ ٱلۡقُرَىٰ 
حَتَّىٰ یَبۡعَثَ فِیۤ أُمِّهَا رَسُولࣰا 
یَتۡلُوا۟ عَلَیۡهِمۡ ءَایَـٰتِنَاۚ
 
وَمَا كُنَّا مُهۡلِكِی ٱلۡقُرَىٰۤ إِلَّا 
وَأَهۡلُهَا ظَـٰلِمُونَ
The basic theme of this Surah is the prophethood.
Some aspects of the life of Prophet Moses -peace be upon him- are mentioned to show the similarity between him and Prophet Muhammad – peace be upon all the prophets of Allah.
There are also answers here to the questions and doubts that were raised by some non-believers.
اور تیرا رب بستیوں کو ہلاک نہیں کیا کرتا 
جب تک ان کے بڑے شہر میں پیغمبر نہ 
بھیج لے 
جو انہیں ہماری آیتیں پڑھ کر سنائے 
اور ہم بستیوں کو ہلاک نہیں کیا کرتے 
مگر اس حالت میں کہ وہاں کے باشندے 
ظالم ہوں
Sections:
Story of Moses and Pharaoh is related. Pharaoh was persecuting the Israelites. Allah wished to show his favor to the oppressed people. Birth of Moses and then his growing up in Pharaoh’s own palace.
Moses’ encounter with an Egyptian and his escape to Madyan.
Moses’ marriage in Madyan.
Moses receives Prophethood and especial signs from Allah. His appearance before Pharaoh. Pharaoh’s denial and then Allah’s punishment for him and his armies.
The Prophet relating these stories by inspiration from Allah and for a purpose.
Allah’s guidance is continuos.
The message of Islam is tawhid.
The story of Qarun: his character and his end.
Allah’s promise for the Believers.