مَا أَصَابَ مِن مُّصِيبَةٍ فِي الْأَرْضِ وَلَا فِي أَنفُسِكُمْ إِلَّا فِي كِتَابٍ مِّن قَبْلِ أَن نَّبْرَأَهَا ۚ إِنَّ ذَٰلِكَ عَلَى اللَّهِ يَسِيرٌ (22)
(57:22) No misfortune ever befalls on earth, nor on yourselves but We have inscribed it in the Book *39 before We make it manifest. *40 Surely that is easy for Allah. *41
*39) "A Book": the Writ of destiny,
*40) Here, "it" may be referring to the affliction as well as to the earth, or the self of man, or in view of the context, to all the creatures.
*41) That is, it is not at all difficult for Allah to pre-ordain the destiny of each and every one of His creatures.