Allah is Knowledgeable “al-^Alim”, i.e., the One attributed with the Eternal and Everlasting attribute of Knowledge that does not change, increase, decrease, or get renewed. Allah knows about everything before it happens. Allah said in Surat al-An^am verse #59:
﴿وعنده مفاتح الغيب لا يعلمها إلاّ هوَ ويعلم ما في البرِّ والبحر وما تسْقُطُ من ورقةٍ إلاّ يعلمها ولا حبَّةٍ في ظلمات الأرض ولا رطْبٍ ولا يابسٍ إلاّ في كتابٍ مبين﴾ سورة الأنعام This verse means: [Only Allah knows about all the unforeseen; none knows them except Him. And He knows what is on land and in the sea. Not a leaf falls but that He knows it. And no grain is there within the darkness of the earth and no moist or dry [thing] except that it is [written] in a clear record].
Darulfatwa 2022