Al Mumtahanah 60 : verse 13

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

Yā 'Ayyuhā Al-Ladhīna 'Āmanū Lā Tatawallaw Qawmāan Ghađiba Al-Lahu `Alayhim Qad Ya'isū Mina Al-'Ākhirati Kamā Ya'isa Al-Kuffāru Min 'Aşĥābi Al-Qubūri

O ye who believe! Turn not (for friendship) to people on whom is the Wrath of God, of the Hereafter they are already in despair, just as the Unbelievers are in despair about those (buried) in graves.