Abbas - Tanwîr al-Miqbâs min Tafsîr Ibn ‘Abbâs
(There is not a township but We shall destroy it) We shall destroy its people (ere the Day of Resurrection, or punish it with dire punishment) with the sword and diseases. (That) destruction and torment (is set forth in the Book (of Our decrees)) is written in the Guarded Tablet.
There is not a town — its inhabitants are the ones meant — but We shall destroy it before the Day of Resurrection, through death, or chastise it with terrible chastisement, by killing [its inhabitants] or otherwise. That has been inscribed in the Book, the Preserved Tablet (al-lawh al-mahfūz).
The Destruction or Torment of all Disbelieving Towns before the Hour begins
Here Allah tells us that He has decreed and it is written in Al-Lawh Al-Mahfuz (The Preserved Tablet) which is with Him, that there is no town that He will not destroy by wiping out all its people or by punishing them,
(with a severe torment.) either by killing them or sending calamities upon them as He wills. This will be because of their sins, as Allah says of the past nations:
(And many a town (population) revolted against the command of its Lord and His Messengers;) 65:8 and many Ayat.
Maududi - Sayyid Abul Ala Maududi - Tafhim al-Qur'an
This is to remove the delusion of the disbelievers that their habitations were immune from danger or chastisement. This verse warns that every habitation will be destroyed as a matter of course or by Allah's chastisement.