I have done a lot of research on this site regarding the topic of free will and determinism in Islam and I am yet to receive any form of answer that satisfy my query.
Essentially, the very coexistence of determinism and free will has been in talks of both philosophy and religion. And I'd like to know a little about what the Islamic position of it is.
To help ease the answer to the question, take this example. Say a man starts having immense sexual urges and makes a choice between going to the mosque to deal with the urge or go the brothels. Now, unfortunately, the man takes the path to the brothels. From this, we know that the man is going to and is about to commit a sin and by fate and by what Allah has written in the book of destiny thousands of years before the big bang, he will DEFINITELY commit ZINA. Say the man never repents for his action.
Now, this situation right here, the man will be accountable for his action in the day of judgment and Allah will punish him. Given he had the ability to make a conscious choice between mosque vs brothel, instead choose Zina and even after committing the sin, he didn't repent. But there's this other thing, Allah has fated this to happen to him. Allah has pre-destined, the man's path and whether he'd repent or not. In that case, do free will really exist or is it like we are bound to Allah regardless and that we are just following a code that Allah has set millions of millions of years ago as what we call destiny. And to us, the code itself appears free will?
I always thought, in Islam, the idea of free will and determinism both exist at the same time. And the understanding of how they relate is beyond human understanding, but the question still bugs me to this day. If anyone can shed some perspective, I'll be immensely grateful