Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) said to his son: O my son! You cannot find the taste of faith until (you know that) what is going to reach you will certainly reach you, and what is not to reach you can never reach you; for I heard the Messenger of Allah (peace and blessings be upon him) say: "The first thing Allah created was the Pen, and He said: Write. It said: O my Lord! What shall I write? He said: Write the decree of everything until the Hour is established."
O my son! I heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever dies upon other than this belief has no connection with me."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 20875