Allah is omniscient

Re: Allah is omniscient

Just to sum up the whole thing in few sentences, Allah has decreed everything due to His prior knowledge of how things will happen and He wrote it down in al-Lawh al-Mahfooz. We believe that nothing happens without the permission and will of Allah Ta'ala. Humans do not have free will, we only have freedom of making free choices which is exercised within the frame work of Allah Ta'ala's will. In other words, when we want to do something Allah permits us to do it because it has been decreed that we will do it (prior knowledge). This does not mean that He is forcing us to do A or B.

Having prior knowledge of something doesn't mean that the person is forcing you to do it. For example if a teacher knows that one of his student will fail in the final exam due to his poor performance in the whole year, it does not mean that the teacher is failing the student deliberately or forcing him to get failed.