God’s knowledge of our past, present and future, does not take away our free will to act.
The unregenerate have the free will to act within the confines of sin, they can do no good works: "THERE IS NONE WHO DOES GOOD, NO NOT ONE" (Romans 3, Psalm 14). Not only this but our Lord Jesus Christ says "As much as you did not do it to the least of these, you did not do it to me".
Those outside of Christ have NO GOOD WORKS to follow them at the Great White Throne Judgment. If man had free will, certainly he would be able to do good works, but apart from Christ, He cannot. For Paul says in Romans 25 "Whatever is not of faith is Sin".
Therefore, there is utterly, no Free Will available for those outside of Christ to do any good works. And God says they are Spiritually dead, unable to spiritually hear, see or spiritually move because they are dead.