No misfortune ever befalls on earth, nor on yourselves but We have inscribed it in the Book1 before We make it manifest.2 Surely that is easy for Allah.3
Footnotes
[1]
A Book: the writ of destiny.
[2]
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.
[3]
That is, it is not at all difficult for Allah to pre-ordain the destiny of each and every one of His creatures.