It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "The first thing Allah, the Mighty and Majestic, created was the Pen. Then He said to it: 'Run (write).' It said: 'What shall I write?' He said: 'What is to be until the Day of Resurrection (write it all).'"
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "When Allah created the Pen, He said to it: 'Write.' So it wrote everything that is to be until the Hour is established."
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "The first thing Allah created was the Pen; then He commanded it, and it wrote everything that is to be."
Umar bin Habib: he is the Makkan one, thiqah (trustworthy), and he is not al-Adawi al-Basri.