Abdullah bin Amr bin As reported,

I heard the Messenger of Allah ﷺ say, "Allah, the Exalted, created His creation in darkness, then cast upon them some of His light. Whoever was struck by that light was guided, and whoever was missed by it went astray. That is why I say, the pen has dried upon the knowledge of Allah عز وجل."

Azami 253

Hasan

عن عبد الله بن عمرو قال

سمعت رسول الله ﷺ يقول: إن الله تعالى خلق خلقه في ظلمة، فألقى عليهم من نوره، فمن أصابه من ذلك النور اهتدى، ومن أخطأه ضل. فلذلك أقول: جف القلم على علم الله عز وجل.

الأعظمي 253حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Affirmation of the knowledge of Allah the Exalted
Numbering
Jami al-Kamil 253 (2nd edition)
Azami 253