وَعَن عبَادَة بن الصَّامِت قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم يَقُول «إِنَّ أَوَّلَ مَا خَلَقَ اللَّهُ الْقَلَمُ فَقَالَ اكْتُبْ فَقَالَ مَا أَكْتُبُ قَالَ اكْتُبِ الْقَدَرَ مَا كَانَ وَمَا هُوَ كَائِنٌ إِلَى الْأَبَدِ» . رَوَاهُ التِّرْمِذِيُّ وَقَالَ هَذَا حَدِيثٌ غَرِيبٌ إِسْنَادًا
Translation

‘Abdallah b. ‘Amr reported that he heard God’s messenger say, “God created His creatures in darkness and cast some of His light upon them. Those on whom some of that light falls will have guidance, but those who are missed by it will go astray. On that account I say that the pen has no more to write about God’s knowledge.” Ahmad and Tirmidhi transmitted it.