The Spoils of War - 8:38 "Say to those who disbelieve: "If they cease, what they did in the past will be forgiven. If they turn back, the Sunnah (law) of those who were before is valid."
Why were the previous ones destroyed?
The Romans/30:42 "Say, "Travel through the earth and see how was the end of those before you". Most of them were associators."

Prophet Jonah/10:13 How many generations before you We destroyed when they did wrong. Their messengers had gone to them with clear proofs, but they refused to believe. Thus do We punish the guilty people.

Prophet Hud/11:117 Your Lord will not destroy the cities as long as their people are righteous.

Prophet Abraham/14:13 "The disbelievers said to their messengers, "Either you return to our religion or we will expel you from our land!"Their Lord revealed to them, "We will destroy the wrongdoers."

The Night Journey/17:16 When We wish to destroy a community, We allow its prominent wealthy people to do evil there. Thus the promise to that community is fulfilled and We destroy it.

The Pilgrimage/22:45 We destroyed the inhabitants of many cities because of the injustice they committed, and what remained of them were collapsed roofs, abandoned wells and deserted palaces...

The Poets/26:136 "They said, "It is the same for us whether you give advice or not."
The Poets/26:137 This is the way of life followed by those before us.
The Poets/26:139 So they denied him. Finally We destroyed them. There is a lesson in this, but the majority do not believe.
The Poets/26:208 We did not destroy any city without a warner.

The Stories/28:58 How many peoples We destroyed who were ungrateful for the favors given to them. These are their houses which were inhabited by few after them. We have inherited them.
The Stories/28:59 Your Lord does not destroy a people until He sends to their center a messenger who recites to them Our Verses. And We never destroy a people whose people are not oppressors.
The Stories/28:59 Your Lord does not destroy a people until He sends to their center a messenger who recites to them Our Verses. And We never destroy a people whose people are not oppressors.

The Spider/29:31 "When Our messengers came to Abraham with good news, he said, "We are about to destroy the people of this city (Sodom). For the people of that place have become unjust."

The Romans/30:9 Do they not travel through the earth and see how was the end of those before them? They were stronger than them, they cultivated the land and produced more than them. Their messengers had gone to them with clear proofs. It was not Allah who wronged them; they wronged themselves.

Explained in Detail/41:15 "As for Ad, they were arrogant in the earth unjustly and said: "Who is stronger than us?"Do they not realize that Allah, Who created them, is stronger than them? They were willfully disbelieving in Our signs and miracles."
Explained in Detail/41:16 Finally, We sent upon them a strong wind on an inauspicious day to make them taste the humiliating torment in the life of this world, while the torment of the Hereafter is more humiliating and they will not be helped.

The Letter Qaf/50:12 The people of Noah, the people of Res and Thamud had disbelieved before them.
The Letter Qaf/50:13 Ad, Pharaoh and the brothers of Lot.
The Letter Qaf/50:14 The people of Ayka and the people of Tubba´. They all denied the messengers. So My threat came true.