Sure Al-Ankaboot

29:21

يُعَذِّبُ مَن يَشَآءُ وَيَرْحَمُ مَن يَشَآءُ ۖ وَإِلَيْهِ تُقْلَبُونَ

Er straft, wen Er will, und Er erbarmt Sich, wessen Er will. Und zu Ihm werdet ihr zurückgebracht.

Tafsir 29:21

He punishes whom He wishes from His creation through His justice, and He has mercy on whom He wishes amongst His creation through His grace.