٢٩. قُلْ إِن تُخْفُوا۟ مَا فِى صُدُورِكُمْ أَوْ تُبْدُوهُ يَعْلَمْهُ ٱللَّهُ ۗ وَيَعْلَمُ مَا فِى ٱلسَّمَـٰوَٰتِ وَمَا فِى ٱلْأَرْضِ ۗ وَٱللَّهُ عَلَىٰ كُلِّ شَىْءٍ قَدِيرٌ
٣٠. يَوْمَ تَجِدُ كُلُّ نَفْسٍ مَّا عَمِلَتْ مِنْ خَيْرٍ مُّحْضَرًا وَمَا عَمِلَتْ مِن سُوٓءٍ تَوَدُّ لَوْ أَنَّ بَيْنَهَا وَبَيْنَهُۥٓ أَمَدًۢا بَعِيدًا ۗ وَيُحَذِّرُكُمُ ٱللَّهُ نَفْسَهُۥ ۗ وَٱللَّهُ رَءُوفٌۢ بِٱلْعِبَادِ
[29-30] O Prophet, warn the people to note it well that Allah knows whatever is in your hearts whether you hide it or reveal it, for He knows everything that is in the heavens and in the earth and He has full power over all things. That Day is approaching when everyone shall find before him whatever he has done be it good or evil. On that Day one would wish that there were a long span of time between himself and that Day. Allah warns you to fear Him for He is very Compassionate towards His servants.27
27That is, "It is simply out of His extreme compassion for you that Allah warns you beforehand of those things that might lead you to ruin."