Sure At-Taghaabun

64:5

أَلَمْ يَأْتِكُمْ نَبَؤُا۟ ٱلَّذِينَ كَفَرُوا۟ مِن قَبْلُ فَذَاقُوا۟ وَبَالَ أَمْرِهِمْ وَلَهُمْ عَذَابٌ أَلِيمٌۭ

Ist zu euch nicht die Kunde von denjenigen gekommen, die zuvor ungläubig waren und dann die schlimmen Folgen ihres Verhaltens kosteten? Und für sie wird es schmerzhafte Strafe geben.

Tafsir 64:5

Has the news of the nations who denied before you not reached you, O idolaters - such as the people of Noah, the Ad, the Thamud and others. They tasted the punishment of the disbelief they had perpetrated in the world, and in the afterlife they will receive a painful punishment. Indeed, that has come to you. So take a lesson from their eventual outcome and repent to Allah before that which befell them befalls you.