And it is not [possible] for one to die except by permission of Allāh at a decree determined. And whoever desires the reward of this world - We will give him thereof; and whoever desires the reward of the Hereafter - We will give him thereof. And We will reward the grateful.
No person can die except by the divine decree of Allah, when the time Allah has written for them has come to an end and their set time of death has arrived: their life will not be made longer or shorter. Whoever desires worldly gain through what they do, Allah will give them of it, according to what He has decreed for them, and they will have no share in the Afterlife. Yet whoever desires the reward of Allah in the Afterlife through what they do, Allah will give them its reward, and He will give a great reward to those who are thankful to their Lord.