Tafsir Ibn Kathir -> Surah Al-'Imran -> Allah Knows What the Hearts Conceal

Allah tells His servants that He knows the secrets and apparent matters and that nothing concerning them escapes His observation. Rather, His knowledge encompasses them in all conditions, time frames, days and instances. His knowledge encompasses all that is in heaven and earth, and nothing not even the weight of an atom, or what is smaller than that in the earth, seas and mountains, escapes His observation. Indeed,

﴿وَاللَّهُ عَلَى كُلِّ شَيْءٍ قَدِيرٌ﴾

(And Allah is able to do all things.) and His ability encompasses everything. This Ayah alerts Allah's servants that they should fear Him enough to not commit what He prohibits and dislikes, for He has perfect knowledge in all they do and is able to punish them promptly. And He gives respite to some of them, then He punishes them, and He is Swift and Mighty in taking account. This is why Allah said afterwards,

﴿يَوْمَ تَجِدُ كُلُّ نَفْسٍ مَّا عَمِلَتْ مِنْ خَيْرٍ مُّحْضَرًا﴾

(On the Day when every person will be confronted with all the good he has done,) meaning, on the Day of Resurrection, Allah brings the good and evil deeds before the servant, just as He said,

﴿يُنَبَّأُ الإِنسَـنُ يَوْمَئِذِ بِمَا قَدَّمَ وَأَخَّرَ ﴾

(On that Day man will be informed of what he sent forward, and what he left behind.) ﴿75:13﴾.

When the servant sees his good deeds, he becomes happy and delighted. When he sees the evil deeds he committed, he becomes sad and angry. Then he will wish that he could disown his evil work and that a long distance separated it from him. He will also say to the devil who used to accompany him in this life, and who used to encourage him to do evil;

﴿يلَيْتَ بَيْنِي وَبَيْنَكَ بُعْدَ الْمَشْرِقَيْنِ فَبِئْسَ الْقَرِينُ﴾

("Would that between me and you were the distance of the two easts ـ a horrible companion (indeed)!) ﴿43:38﴾.

Allah then said, while threatening and warning,

﴿وَيُحَذِّرُكُمُ اللَّهُ نَفْسَهُ﴾

(And Allah warns you against Himself) meaning, He warns you against His punishment. Allah then said, while bringing hope to His servants, so that they do not despair from His mercy or feel hopeless of His kindness,

﴿وَاللَّهُ رَءُوفٌ بِالْعِبَادِ﴾

(And Allah is full of kindness with the servants)

Al-Hasan Al-Basri said, "Allah is so kind with them that He warns them against Himself.'' Others commented, "He is merciful with His creation and likes for them to remain on His straight path and chosen religion, and to follow His honorable Messenger.''

﴿قُلْ إِن كُنتُمْ تُحِبُّونَ اللَّهَ فَاتَّبِعُونِى يُحْبِبْكُمُ اللَّهُ وَيَغْفِرْ لَكُمْ ذُنُوبَكُمْ وَاللَّهُ غَفُورٌ رَّحِيمٌ - قُلْ أَطِيعُواْ اللَّهَ وَالرَّسُولَ فإِن تَوَلَّوْاْ فَإِنَّ اللَّهَ لاَ يُحِبُّ الْكَـفِرِينَ ﴾

(31. Say (O Muhammad to mankind): "If you (really) love Allah, then follow me (i.e. Muhammad), Allah will love you and forgive you your sins. And Allah is Oft-Forgiving, Most Merciful.'') (32. Say: "Obey Allah and the Messenger.'' But if they turn away, then Allah does not like the disbelievers.)