Is Time Of Death Predetermined Per Quran?
Summary of Response : Whatever is written about our fate and death, concerns Allah’s knowledge (‘ilm’) about our fate. His prior knowledge does not mean that we are under any compulsion to do what has been written. It only means that He knows what we are going to do. Consequently, if Allah knows beforehand that such and such people will go to Hell or certain others will go to heaven or the time of a person’s death, then it only means that such people will do the deeds which will lead them to such results. In other words, a person’s deeds/actions/sequence of events chosen by him will determine his fate only. However, whatever deeds he will do are already in the knowledge of Allah. https://youtu.be/fBfDE2jkYe8
Came across this while reading and thought of your question.