Sure Al-Israa

17:54

رَّبُّكُمْ أَعْلَمُ بِكُمْ ۖ إِن يَشَأْ يَرْحَمْكُمْ أَوْ إِن يَشَأْ يُعَذِّبْكُمْ ۚ وَمَآ أَرْسَلْنَٰكَ عَلَيْهِمْ وَكِيلًۭا

Euer Herr kennt euch sehr wohl; wenn Er will, erbarmt Er Sich eurer, oder wenn Er will, straft Er euch. Und Wir haben dich nicht als Sachwalter über sie gesandt.

Tafsir 17:54

Your Lord, O people, knows you best. Nothing of yours is hidden from Him. If He wishes to have mercy on you, He will have grace you with having faith and doing good deeds. And if He wishes to punish you, He can punish you by depriving you of faith, leaving you to die on disbelief. And He as not sent the Messenger as a deputy over people, to force them to believe, or stop them from disbelief or to record their deeds. The Messenger is only a conveyor of what Allah has ordered him to convey on His behalf.