Sure Al-Anbiyaa

21:29

۞ وَمَن يَقُلْ مِنْهُمْ إِنِّىٓ إِلَٰهٌۭ مِّن دُونِهِۦ فَذَٰلِكَ نَجْزِيهِ جَهَنَّمَ ۚ كَذَٰلِكَ نَجْزِى ٱلظَّٰلِمِينَ

Und wer von ihnen sagen sollte: "Ich bin ein Gott außer Ihm", dem vergelten Wir mit der Hölle. So vergelten Wir den Ungerechten.

Tafsir 21:29

And for argument’s sake, whoever amongst the angels were to say: “I am a god besides Allah”, I will punish him for what he says with Hellfire on the Day of Judgment, staying therein forever. And with this kind of punishment I punish those who are unjust by disbelieving and associating partners with Allah.