Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) said: "O my son, you will never taste the reality of faith until you know that whatever has befallen you was not going to miss you, and whatever has missed you was not going to befall you. I heard the Messenger of Allah (peace and blessings be upon him) saying: 'Indeed, the first thing Allah Almighty created was the Pen. Then He said to it: Write. It said: O my Lord, what shall I write? He said: Write the decrees of everything until the Hour is established.' O my son, I heard the Messenger of Allah (peace and blessings be upon him) saying: 'Whoever dies upon other than this (belief) is not of me.'"
Imam Abu Dawud (may Allah have mercy on him) narrated it like this.
In the printed edition of Dar Khidr, edited by Abd al-Malik bin Abdullah bin Duhaysh, it reads "Jubaysh al-Khushani", whereas what is recorded (in the text) is correct; his biography can be seen in "Tahdhib al-Kamal", "Tahdhib al-Tahdhib" and other works.