It is narrated from al-Walid bin Ubadah (may Allah have mercy on him) that when the time of death came to Sayyiduna Ubadah (may Allah be pleased with him), his son Abd al-Rahman said: "Father! Give me counsel." Sayyiduna Ubadah (may Allah be pleased with him) said: "Sit me up." So the people sat him up, and he said: "My son! Keep fearing Allah. You will never be able to fear Allah until you believe in Allah, and you will never be able to believe in Allah until you believe in predestination, both its good and its bad, and know that whatever reached you was never going to miss you, and whatever missed you was never going to reach you. I heard the Messenger of Allah (peace and blessings be upon him) say: 'Predestination (stands) upon this; whoever dies upon any belief other than it will enter Hell.'"
Related hadith on this topic