The Knower of the Unseen and the Visible, the Most Great , the High-Exalted. (Surat ar-Ra‘d, 13:9)
Allah has all creatures under His control. He knows when a buried seed will sprout, the orbit of a comet approaching Earth, the exact time when a living being will be born or die, the orbits of the electrons rotating around an atom's nucleus, and everything else. With His infinite power, Allah has control over all the thoughts of all people, both in their subconscious as well as their intentions while doing something.
Allah predetermines every detail of a person's life. Given that only He knows the Unseen, His infinite wisdom, knowledge, forgiveness, compassion, and punishment is far beyond human comprehension. No one can make even a minor alteration to His decisions. If Allah wishes to send something harmful or good, no one can deflect it.
Humanity is obliged to bow with reverence before such a great power and take refuge in our Lord, the All-Wise, and ask for mercy from Him, for we cannot attain salvation until Allah has mercy upon us and forgives us. That He is the All-High and Most Great is stated in the following verses:
That is because Allah is the Real, and what you call upon apart from Him is false. Allah is the All-High, the Most Great. (Surat al-Hajj, 22:62)
That is because Allah—He is the Truth, and what you call upon besides Him is falsehood. Allah is the All-High, the Most Great. (Surah Luqman, 31:30)