عَنْ عَبْدِ اللهِ بْنِ عَمْرِو بْنِ الْعَاصِ رضي الله عنهما قَالَ: سَمِعْتُ رَسُولَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «كَتَبَ اللهُ مَقَادِيرَ الْخَلَائِقِ قَبْلَ أَنْ يَخْلُقَ السَّمَاوَاتِ وَالْأَرْضَ بِخَمْسِينَ أَلْفَ سَنَةٍ، قَالَ: وَعَرْشُهُ عَلَى الْمَاءِ».
The Prophet (may Allah's peace and blessings be upon him) says that Allah decreed the future destinies of the creatures in detail, including life, death, sustenance, and so on in the Preserved Tablet fifty thousand years before He created the heavens and the earth - and these will take place according to Allah's decree. Everything that comes into being, is so according to Allah's decree and predestination.
So, whatever befalls a person would not have missed him, and whatever misses him would not have befallen him.
Download for free and never miss a prayer again