39وَمَاذَا عَلَيْهِمْ لَوْ ءَامَنُوا۟ بِٱللَّهِ وَٱلْيَوْمِ ٱلْـَٔاخِرِ وَأَنفَقُوا۟ مِمَّا رَزَقَهُمُ ٱللَّهُ ۚ وَكَانَ ٱللَّهُ بِهِمْ عَلِيمًا
40إِنَّ ٱللَّهَ لَا يَظْلِمُ مِثْقَالَ ذَرَّةٍ ۖ وَإِن تَكُ حَسَنَةً يُضَـٰعِفْهَا وَيُؤْتِ مِن لَّدُنْهُ أَجْرًا عَظِيمًا
41فَكَيْفَ إِذَا جِئْنَا مِن كُلِّ أُمَّةٍۭ بِشَهِيدٍ وَجِئْنَا بِكَ عَلَىٰ هَـٰٓؤُلَآءِ شَهِيدًا
42يَوْمَئِذٍ يَوَدُّ ٱلَّذِينَ كَفَرُوا۟ وَعَصَوُا۟ ٱلرَّسُولَ لَوْ تُسَوَّىٰ بِهِمُ ٱلْأَرْضُ وَلَا يَكْتُمُونَ ٱللَّهَ حَدِيثًا
[39-42] Well, what harm would have come upon them, if they had believed in Allah and the Last Day and spent out of what Allah had given them? Had they done so, Allah would surely have had knowledge of their good deeds. Indeed Allah does not wrong anyone even by a jot: if one does a good deed, He doubles it, and then from Himself bestows a rich reward. Just imagine how they will fare, when We shall bring forward a witness from every community and raise you (O Muhammad) as a witness in regard to these people.64 At that time, all those, who rejected the Messenger and disobeyed him, would wish the earth to split open and swallow them; for there they will not be able to hide anything from Allah.
64That is, the Prophet of every age will give evidence in the Court of Allah, saying: "Lord, I duly delivered Your message to my people and taught them the right way of life and the right mode of thought and practice which You taught me." Last of all, the Prophet Muhammad (upon whom be Allah's peace and blessings) will give this same evidence regarding the people of his term. and his term, according to the Qur'an extends from the time of his appointment as Prophet till Resurrection. (E.N. 69, Al-`Imran)