Tafsir Ibn Kathir -> Surah Al-An'am -> Only Allah Knows the Unseen

Allah said next,

﴿وَعِندَهُ مَفَاتِحُ الْغَيْبِ لاَ يَعْلَمُهَآ إِلاَّ هُوَ﴾

(And with Him are the keys of the Ghayb (all that is hidden), none knows them but He.) Al-Bukhari recorded that Salim bin `Abdullah said that his father said that the Messenger of Allah said,

«مَفَاتِيحُ الْغَيْبِ خَمْسٌ لَا يَعْلَمُهُنَّ إِلَّا الله»

(The keys of the Unseen are five and none except Allah knows them:

﴿إِنَّ اللَّهَ عِندَهُ عِلْمُ السَّاعَةِ وَيُنَزِّلُ الْغَيْثَ وَيَعْلَمُ مَا فِى الاٌّرْحَامِ وَمَا تَدْرِى نَفْسٌ مَّاذَا تَكْسِبُ غَداً وَمَا تَدْرِى نَفْسٌ بِأَىِّ أَرْضٍ تَمُوتُ إِنَّ اللَّهَ عَلَيمٌ خَبِيرٌ ﴾

(Verily, Allah! With Him (Alone) is the knowledge of the Hour, He sends down the rain, and knows that which is in the wombs. No person knows what he will earn tomorrow, and no person knows in what land he will die. Verily, Allah is All-Knower, All-Aware)'') ﴿31:34﴾. Allah's statement,

﴿وَيَعْلَمُ مَا فِى الْبَرِّ وَالْبَحْرِ﴾

(And He knows whatever there is on the land and in the sea;) means, Allah's honored knowledge encompasses everything, including the creatures living in the sea and on land, and none of it, not even the weight of an atom on earth or in heaven, ever escapes His knowledge. Allah's statement,

﴿وَمَا تَسْقُطُ مِن وَرَقَةٍ إِلاَّ يَعْلَمُهَا﴾

(not a leaf falls, but He knows it.) means, He knows the movements of everything including inanimate things. Therefore, what about His knowledge of the living creatures, especially, those whom the Divine laws have been imposed upon such as mankind and the Jinns In another Ayah, Allah said;

﴿يَعْلَمُ خَآئِنَةَ الاٌّعْيُنِ وَمَا تُخْفِى الصُّدُورُ ﴾

(Allah knows the fraud of the eyes, and all that the breasts conceal.) ﴿40:19﴾

﴿وَهُوَ الَّذِى يَتَوَفَّـكُم بِالَّيْلِ وَيَعْلَمُ مَا جَرَحْتُم بِالنَّهَارِ ثُمَّ يَبْعَثُكُمْ فِيهِ لِيُقْضَى أَجَلٌ مّسَمًّى ثُمَّ إِلَيْهِ مَرْجِعُكُمْ ثُمَّ يُنَبِّئُكُم بِمَا كُنتُمْ تَعْمَلُونَ - وَهُوَ الْقَاهِرُ فَوْقَ عِبَادِهِ وَيُرْسِلُ عَلَيْكُم حَفَظَةً حَتَّى إِذَا جَآءَ أَحَدَكُمُ الْمَوْتُ تَوَفَّتْهُ رُسُلُنَا وَهُمْ لاَ يُفَرِّطُونَ - ثُمَّ رُدُّواْ إِلَى اللَّهِ مَوْلَـهُمُ الْحَقِّ أَلاَ لَهُ الْحُكْمُ وَهُوَ أَسْرَعُ الْحَـسِبِينَ ﴾

(60. It is He, Who takes your souls by night (when you are asleep), and has knowledge of all that you have done by day, then he raises (wakes) you up again, that a term appointed be fulfilled, then (in the end), unto Him will be your return. Then He will inform you of what you used to do.) (61. He is the Qahir over His servants, and He sends guardians over you, until when death approaches one of you, Our messengers take his soul, and they never neglect their duty.) (62. Then they are returned to Allah, their Master, the Just Lord. Surely, His is the judgment and He is the swiftest in taking account.)