You give no references so I don't know if you have actually read any of this or you just copied it from elsewhere. But let us take one example, you say that 3,000 Israelites were executes and that is an historical fact not a command or bit of teaching. No doubt God wants us to learn something from the incident if its only to feel deep sadness that sin should bring this about but no one now argues this means we must go an execute anyone and Moses does not turn it into a bit of teaching or law. Neither do we say that this story was written before time began.What situations caused God to - forbid the Amonites and their descendants from entering the Lord's assembly, command 3000 Israelites be executed by their, "brother and friend and neighbor", order Canaan be cleansed from its inhabitants, forbid the Israelites entry to the promised land? etc
Well you might argue that way but I do not agree and I cannot recall an incident where that did occur - I cannot deny it entirely because often we do not know the contexts. Perhaps you will find just ONE and we can discuss it and I will do the same for then Qu'ran and we can compare them.Even if you want to go to the 600+ commandments, many of them, just like many but not all of the laws in the Quran, came in answer to situations that had already occured.
Interesting, Islam does not know, it only has opinions? But it does sound something of a contradiction to say freewill and nothing passes out of his control. But consider, Muhammed said "my community will never agree upon error", meaning I suppose that something confirmed by the Umma, is taken as infallible so where is revelation in this or freewill or fresh ideas - it sounds like intellectual suicide.There is no "as understood in Islam", there are opinions formed from verses of the Quran that give us a glimpse on the relation between God's omniscience, human freewill and moral accountability. These passages teach us that man uses his freewill while remaining subservient to God's will meaning nothing passes out of His control, and that God holds us accountable according to the level of freewill eachone is granted.