Sura Al-Israa

17:54

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

Er Herre känner er väl; om Han vill, förbarmar Han sig över er, och om Han vill, straffar Han er. Men Vi har inte sänt dig [Muhammad] för att vaka över människorna och deras handlingar.

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.