"Indeed, there have been ways [of life] before you," meaning: that with which Allah punished the preceding nations when
﴿قَدْ خَلَتْ مِنْ قَبْلِكُمْ سُنَنٌ﴾ يَعْنِي: مَا عذب الله بِهِ الْأُمَم السالفة حِين