Yoo
Eel eh?
This teacher example is bad, Listen to this to get another viewFree will does exist in Islam. Allah created Mankind and Jinn to worship him and gave us free will as a test for us. If we worship him, he would give us jannah as a reward. If we disobey him then he would deal with us (May Allah protect us from Hellfire).
Allah says in the Quran- And say, "The truth is from your Lord, so whoever wills - let him believe; and whoever wills - let him disbelieve." (Surah 18:29)
Just because Allah knows the future and what would happen that doesn’t mean he’s controlling us. A teacher in a class room might know a student who would pass or fail depending on their character! That doesn’t mean the teacher should be blamed for the student failing just because she knew the student was going to fail in the passed.
Allah is all just and merciful. You have the free will he gave you so it’s your choice to use it.
@Waaqo of Punt is it clear now?