Hadith 181

وَعَنْهُ أَيْضًا قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَقُولُ: ((إِنَّ اللَّهَ عَزَّ وَجَلَّ خَلَقَ خَلْقَهُ فِي ظُلْمَةٍ ثُمَّ أَلْقَى عَلَيْهِمْ مِنْ نُورِهِ يَوْمَئِذٍ، فَمَنْ أَصَابَهُ مِنْ نُورِهِ يَوْمَئِذٍ اِهْتَدَى وَمَنْ أَخْطَأَهُ ضَلَّ، فَلِذَلِكَ أَقُولُ: جَفَّ الْقَلَمُ عَلَى عِلْمِ اللَّهِ عَزَّ وَجَلَّ))
It is also narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, Allah Almighty created His creation in darkness, then on that day He cast His light upon them. Whoever received that light on that day was guided, and whoever it missed went astray. That is why I say: The pen has dried according to the knowledge of Allah Almighty."
Hadith Reference الفتح الربانی / كتاب القدر / 181
Hadith Grading محدثین: صحیح
Hadith Takhrij «اسناده صحيح ۔ أخرجه ابن ماجه: 3377، (انظر مسند أحمد ترقيم الرسالة: 6644 ترقیم بيت الأفكار الدولية: 6644»