Sure Al-Mumtahana

60:13

يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لَا تَتَوَلَّوْا۟ قَوْمًا غَضِبَ ٱللَّهُ عَلَيْهِمْ قَدْ يَئِسُوا۟ مِنَ ٱلْءَاخِرَةِ كَمَا يَئِسَ ٱلْكُفَّارُ مِنْ أَصْحَٰبِ ٱلْقُبُورِ

O die ihr glaubt, nehmt nicht Leute zu Schutzherren, denen Allah zürnt. Sie haben ja die Hoffnung auf das Jenseits aufgegeben, so wie die Ungläubigen die Hoffnung (auf Wiederauferstehung) der (Toten) in den Gräbern aufgegeben haben.

Tafsir 60:13

Since the Sūrah commenced with a warning against becoming allies with Allah’s enemies, it ends with a warning against the same to reiterate what was said previously. Allah said: O you who have faith in Allah, and who act on what He has ordained for you, do not take as allies a people with whom Allah is angry. They do not have conviction in the afterlife. Instead they despair of it just like their despair of the return of their dead to them, because they reject resurrection.