أَلَمْ تَرَ أَنَّ ٱللَّهَ يَعْلَمُ مَا فِى ٱلسَّمَٰوَٰتِ وَمَا فِى ٱلْأَرْضِ ۖ مَا يَكُونُ مِن نَّجْوَىٰ ثَلَٰثَةٍ إِلَّا هُوَ رَابِعُهُمْ وَلَا خَمْسَةٍ إِلَّا هُوَ سَادِسُهُمْ وَلَآ أَدْنَىٰ مِن ذَٰلِكَ وَلَآ أَكْثَرَ إِلَّا هُوَ مَعَهُمْ أَيْنَ مَا كَانُوا۟ ۖ ثُمَّ يُنَبِّئُهُم بِمَا عَمِلُوا۟ يَوْمَ ٱلْقِيَٰمَةِ ۚ إِنَّ ٱللَّهَ بِكُلِّ شَىْءٍ عَلِيمٌ٧
Do you not see that Allah knows all that is in the heavens and all that is on earth? No secret consultation takes place between three, but He is their fourth, or between five, but He is their sixth, or between fewer or more than that, but He is with them wherever they may be. Then He will inform them of what they did on the Day of Resurrection. Indeed, Allah is All-Knowing of everything.
[ ↗ Study from physical print edition ]Have you not considered that Allah knows what is in the heavens and what is on the earth? There is in no private conversation three but that He is the fourth of them, nor are there five but that He is the sixth of them - and no less than that and no more except that He is with them [in knowledge] wherever they are. Then He will inform them of what they did, on the Day of Resurrection. Indeed Allah is, of all things, Knowing.
[ ↗ Study from physical print edition ]7. O Messenger! Do you not see that Allah knows everything that is in the heavens and everything on Earth; nothing within them is hidden from Him? No three people talk among themselves except that Allah (may He be glorified) is the fourth among them through His knowledge; nor do five people talk among themselves except that He may He be glorified is the sixth among them through His knowledge; nor any less or any more than these numbers, except that Allah is with them through His knowledge wherever they may be. No speech of theirs remains hidden from Him; He will then inform them of their actions on the Day of Judgement. Indeed, He knows everything; nothing is hidden from Him.
Have you not seen have you not realised that God knows all that is in the heavens and all that is in the earth? Not secret conversation of three takes place but He is their fourth companion by virtue of His omniscience nor of five but He is their sixth nor of fewer than that or more but He is with them wherever they may be. Then He will inform them of what they did on the Day of Resurrection. Assuredly God has knowledge of all things.
أَحْصَاهُ اللَّـهُ وَنَسُوهُ (...Allah has its full account, while they have forgotten transgressions, but because he treats them as trivial and insignificant, he is unable to remember and recall them. However, they are all recorded and kept safely with Allah, even though the humans have done the actions and forgotten them. Allah will call them to give an account of them on the Day of Resurrection and chastise them.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿أَلَمْ تَرَ أَنَّ اللَّهَ يَعْلَمُ مَا فِي السَّماواتِ وَما فِي الْأَرْضِ﴾ فَلَا يَخْفَى عَلَيْهِ سِرٌّ وَلَا عَلَانِيَةٌ. (مَا يَكُونُ مِنْ نَجْوى) قَرَاءَهُ الْعَامَّةِ بِالْيَاءِ، لِأَجْلِ الْحَائِلِ بَيْنَهُمَا. وَقَرَأَ أَبُو جَعْفَرِ بْنُ الْقَعْقَاعِ وَالْأَعْرَجُ وَأَبُو حَيْوَةَ وَعِيسَى (مَا تَكُونُ) بِالتَّاءِ لِتَأْنِيثِ الْفِعْلِ. وَالنَّجْوَى: السِّرَارُ، وَهُوَ مَصْدَرٌ وَالْمَصْدَرُ قَدْ يُوصَفُ بِهِ، يُقَالُ: قَوْمٌ نَجْوَى أَيْ ذَوُو نَجْوَى، وَمِنْهُ قَوْلُهُ تَعَالَى: ﴿وَإِذْ هُمْ نَجْوى﴾ [[راجع ج ١٠ ص ٢٧٢]]. وَقَوْلُهُ تَعَالَى: ﴿ثَلاثَةٍ﴾ خُفِضَ بِإِضَافَةِ (نَجْوى) إِلَيْهَا. قَالَ الْفَرَّاءُ: (ثَلاثَةٍ) نَعْتٌ لِلنَّجْوَى فَانْخَفَضَتْ وَإِنْ شِئْتَ أَضَفْتَ (نَجْوى) إِلَيْهَا. وَلَوْ نُصِبَ عَلَى إِضْمَارِ فِعْلٍ جَازَ، وَهِيَ قِرَاءَةُ ابْنِ أَبِي عَبْلَةَ (ثَلَاثَةً) وَ (خَمْسَةً) بِالنَّصْبِ عَلَى الْحَالِ بِإِضْمَارِ يَتَنَاجَوْنَ، لِأَنَّ نَجْوَى يَدُلُّ عَلَيْهِ، قَالَهُ الزَّمَخْشَرِيُّ. وَيَجُوزُ رَفْعُ (ثَلَاثَةٍ) عَلَى الْبَدَلِ مِنْ مَوْضِعِ (نَجْوى). ثُمَّ قِيلَ: كُلُّ سِرَارٍ نَجْوَى. وَقِيلَ: النَّجْوَى ما يكون من خَلْوَةِ ثَلَاثَةٍ يُسِرُّونَ شَيْئًا وَيَتَنَاجَوْنَ بِهِ. وَالسِّرَارُ مَا كَانَ بَيْنَ اثْنَيْنِ. (إِلَّا هُوَ رابِعُهُمْ) يَعْلَمُ وَيَسْمَعُ نَجْوَاهُمْ، يَدُلُّ عَلَيْهِ افْتِتَاحُ الْآيَةِ بِالْعِلْمِ ثُمَّ خَتَمَهَا بِالْعِلْمِ. وَقِيلَ: النَّجْوَى مِنَ النَّجْوَةِ وَهِيَ مَا ارْتَفَعَ مِنَ الْأَرْضِ، فَالْمُتَنَاجِيَانِ يَتَنَاجَيَانِ وَيَخْلُوَانِ بِسِرِّهِمَا كَخُلُوِّ الْمُرْتَفِعِ مِنَ الْأَرْضِ عَمَّا يَتَّصِلُ بِهِ، وَالْمَعْنَى: أَنَّ سَمْعَ اللَّهِ مُحِيطٌ بِكُلِّ كَلَامٍ، وَقَدْ سَمِعَ اللَّهُ مُجَادَلَةَ الْمَرْأَةِ الَّتِي ظَاهَرَ مِنْهَا زَوْجُهَا. (وَلا أَدْنى مِنْ ذلِكَ وَلا أَكْثَرَ) قَرَأَ سَلَّامٌ وَيَعْقُوبُ وَأَبُو الْعَالِيَةِ وَنَصْرٌ وَعِيسَى بِالرَّفْعِ عَلَى مَوْضِعِ (مِنْ نَجْوى) قَبْلَ دُخُولِ (مِنْ) لِأَنَّ تَقْدِيرَهُ ما يكون نجوى، و (ثلاثة) يجوزان يكون مرفوعا على محل (إِلَّا) مَعَ (أَدْنى) كَقَوْلِكَ: لَا حَوْلَ وَلَا قُوَّةٌ إِلَّا بِاللَّهِ بِفَتْحِ الْحَوْلِ وَرَفْعِ الْقُوَّةِ. وَيَجُوزُ أَنْ يَكُونَا مَرْفُوعَيْنِ عَلَى الِابْتِدَاءِ، كَقَوْلِكَ لَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِاللَّهِ. وَقَدْ مَضَى فِي (الْبَقَرَةِ) [[راجع ج ٣ ص ٢٦٦ فما بعد.]] بَيَانُ هَذَا مُسْتَوْفًى. وَقَرَأَ الزُّهْرِيُّ وَعِكْرِمَةُ (أَكْبَرَ) بِالْبَاءِ. وَالْعَامَّةُ بِالثَّاءِ وَفَتْحِ الرَّاءِ عَلَى اللَّفْظِ وَمَوْضِعُهَا جَرٌّ. وَقَالَ الْفَرَّاءُ فِي قَوْلِهِ: (مَا يَكُونُ مِنْ نَجْوى ثَلاثَةٍ إِلَّا هُوَ رابِعُهُمْ وَلا خَمْسَةٍ إِلَّا هُوَ سادِسُهُمْ) قَالَ: الْمَعْنَى غَيْرُ مَصْمُودٍ وَالْعَدَدُ غَيْرُ مَقْصُودٍ لِأَنَّهُ تَعَالَى إِنَّمَا قَصَدَ وَهُوَ أَعْلَمُ أَنَّهُ مَعَ كُلِّ عَدَدٍ قَلَّ أَوْ كَثُرَ، يَعْلَمُ مَا يَقُولُونَ سِرًّا وَجَهْرًا وَلَا تَخْفَى عَلَيْهِ خَافِيَةٌ، فَمِنْ أَجْلِ ذَلِكَ اكْتَفَى بِذِكْرِ بَعْضِ الْعَدَدِ دُونَ بَعْضٍ. وَقِيلَ: مَعْنَى ذَلِكَ أَنَّ اللَّهَ مَعَهُمْ بِعِلْمِهِ حَيْثُ كَانُوا مِنْ غَيْرِ زَوَالٍ وَلَا انْتِقَالٍ. وَنَزَلَ ذَلِكَ فِي قَوْمٍ مِنَ الْمُنَافِقِينَ كَانُوا فَعَلُوا شَيْئًا سِرًّا فَأَعْلَمَ الله أنه لا يخفي عليه ذلك، قاله ابْنُ عَبَّاسٍ. وَقَالَ قَتَادَةُ وَمُجَاهِدٌ: نَزَلَتْ فِي الْيَهُودِ. (ثُمَّ يُنَبِّئُهُمْ) يُخْبِرُهُمْ (بِما عَمِلُوا) مِنْ حسن وسيء (يَوْمَ الْقِيامَةِ إِنَّ اللَّهَ بِكُلِّ شَيْءٍ عَلِيمٌ).