Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:6:45

So the people that committed wrong were eliminated. And praise to Allah, Lord of the worlds.  

So the last remnant of the people who did evil was cut off, by having them annihilated. Praise be to God, Lord of the Worlds, for giving victory to the messengers and destroying the disbelievers.
القرآن:٦:٤٥

فَقُطِعَ دَابِرُ الْقَوْمِ الَّذِينَ ظَلَمُوا ۚ وَالْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ  

{فقطع دابر القوم الذين ظلموا} أي آخرهم بأن استؤصلوا {والحمد لله رب العالمين} على نصر الرسل وإهلاك الكافرين.

See similar narrations below:

Collected by Qurʾān
quran:37:182

And praise to Allah, Lord of the worlds.  

And praise be to God, Lord of the Worlds, for granting these ˹messengers˺ victory and destroying the disbelievers. Meccan: it consists of 86 or 88 verses, revealed after ˹sūrat˺ al-Qamar.
القرآن:٣٧:١٨٢

وَالْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ  

{والحمد لله رب العالمين} على نصرهم وهلاك الكافرين.