Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:22705Abū al-ʿAlāʾ al-Ḥasan b. Sawwār > Layth > Muʿāwiyah > Ayyūb b. Ziyād > ʿUbādah b. al-Walīd b. ʿUbādah from my father

[Machine] I entered upon Ubada while he was sick and death seemed imminent to him. So I said, "O my father! Advise me and make efforts on my behalf." He said, "Let me sit up." When they made him sit up, he said, "O my son! You will not taste the flavor of faith nor will you truly attain the reality of knowledge about Allah until you believe in destiny, its good and its bad." I said, "O my father! How shall I know the good of destiny from its bad?" He said, "You must know that what has missed you was not going to hit you, and what has hit you was not going to miss you. O my son! I heard the Messenger of Allah ﷺ saying: 'The first thing Allah created was the pen, then He said to it: Write.' From that time until the present time, the records of every single thing are with it." O my son! If you should die while not believing this, you shall enter the Fire.  

أحمد:٢٢٧٠٥حَدَّثَنَا أَبُو الْعَلَاءِ الْحَسَنُ بْنُ سَوَّارٍ حَدَّثَنَا لَيْثٌ عَنْ مُعَاوِيَةَ عَنْ أَيُّوبَ بْنِ زِيَادٍ حَدَّثَنِي عُبَادَةُ بْنُ الْوَلِيدِ بْنِ عُبَادَةَ حَدَّثَنِي أَبِي قَالَ

دَخَلْتُ عَلَى عُبَادَةَ وَهُوَ مَرِيضٌ أَتَخَايَلُ فِيهِ الْمَوْتَ فَقُلْتُ يَا أَبَتَاهُ أَوْصِنِي وَاجْتَهِدْ لِي فَقَالَ أَجْلِسُونِي فَلَمَّا أَجْلَسُوهُ قَالَ يَا بُنَيَّ إِنَّكَ لَنْ تَطْعَمَ طَعْمَ الْإِيمَانِ وَلَنْ تَبْلُغْ حَقَّ حَقِيقَةِ الْعِلْمِ بِاللهِ حَتَّى تُؤْمِنَ بِالْقَدَرِ خَيْرِهِ وَشَرِّهِ قَالَ قُلْتُ يَا أَبَتَاهُ وَكَيْفَ لِي أَنْ أَعْلَمَ مَا خَيْرُ الْقَدَرِ مِنْ شَرِّهِ؟ قَالَ تَعْلَمُ أَنَّ مَا أَخْطَأَكَ لَمْ يَكُنْ لِيُصِيبَكَ وَمَا أَصَابَكَ لَمْ يَكُنْ لِيُخْطِئَكَ يَا بُنَيَّ إِنِّي سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ إِنَّ أَوَّلَ مَا خَلَقَ اللهُ الْقَلَمُ ثُمَّ قَالَ اكْتُبْ فَجَرَى فِي تِلْكَ السَّاعَةِ بِمَا هُوَكَائِنٌ إِلَى يَوْمِ الْقِيَامَةِ يَا بُنَيَّ إِنْ مِتَّ وَلَسْتَ عَلَى ذَلِكَ دَخَلْتَ النَّارَ