Sure Ar-Room

30:47

وَلَقَدْ أَرْسَلْنَا مِن قَبْلِكَ رُسُلًا إِلَىٰ قَوْمِهِمْ فَجَآءُوهُم بِٱلْبَيِّنَٰتِ فَٱنتَقَمْنَا مِنَ ٱلَّذِينَ أَجْرَمُوا۟ ۖ وَكَانَ حَقًّا عَلَيْنَا نَصْرُ ٱلْمُؤْمِنِينَ

Und Wir haben bereits vor dir Gesandte zu ihren (jeweiligen) Völkern gesandt. Sie kamen zu ihnen mit den klaren Beweisen. Da übten Wir Vergeltung an denjenigen, die Übeltaten begingen; und es war für Uns eine Pflicht, den Gläubigen zu helfen.

Tafsir 30:47

O Messenger! Verily, I have sent many Messengers to their people before you, so they brought miracles proving their truthfulness but the people rejected whatever their Messengers brought to them. So, we took retribution from those committed evil and destroyed them with My punishment, saving the Messengers and those who brought faith in them from destruction. It is a right I have obligated upon myself to rescue the believers and help them.