An-Nisa 4:147
مَّا يَفْعَلُ ٱللَّهُ بِعَذَابِكُمْ إِن شَكَرْتُمْ وَءَامَنتُمْ ۚ وَكَانَ ٱللَّهُ شَاكِرًا عَلِيمًا
Ma yafAAalu Allahu biAAathabikumin shakartum waamantum wakana Allahu shakiranAAaleema
What would Allāh do with [i.e., gain from] your punishment if you are grateful and believe? And ever is Allāh Appreciative and Knowing.
What would Allah get by punishing you, if you are grateful and believe? Allah is Appreciating, All-Knowing.