Abdullah bin Amr bin As reported,

I heard the Messenger of Allah ﷺ say, "Allah عز وجل created His creation in darkness, then cast upon them some of His light. Whoever was touched by that light was guided, and whoever it missed went astray."

Azami 13130

Sahih

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

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

الأعظمي 13130صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Fatir
Section
His saying, "Is one to whom the evil of his deed has been made attractive so he considers it good? For indeed, Allah sends astray whom He wills and guides whom He wills. So do not let yourself perish over them in grief. Indeed, Allah is Aleem of what they do." His saying, "For indeed, Allah sends astray whom He wills and guides whom He wills" meaning by divine decree, and it has come in the hadith
Numbering
Jami al-Kamil 13130 (2nd edition)
Azami 13130