Surah Al-Anfal, Ayah 51
Quran 8:51 · The Spoils of War · Madani · Para 10 · Page 183
ذٰلِكَ بِمَا قَدَّمَتْ اَیْدِیْكُمْ وَاَنَّ اللّٰهَ لَیْسَ بِظَلَّامٍ لِّلْعَبِیْدِ ۟ۙ
Transliteration
Thalika bima qaddamat aydeekumwaanna Allaha laysa bithallaminlilAAabeed
Saheeh International
That is for what your hands have put forth [of evil] and because Allāh is not ever unjust to [His] servants."
Al-Mukhtasar fi Tafsir
The cause of that painful punishment at the time when your souls are taken out and the burning punishment in your graves and in the Afterlife is because of the evil actions you performed in the world. Allah does not wrong people, but passes judgement on them with fairness. He is not unjust to His slaves.
Tafsir Ibn Kathir (abridged)
Explains 8:50–8:51 together — read it on 8:50