The Rambam has emphasized that every human being has free will, and G-d is omniscient. Yet Abraham was told by G-d that his descendants will be enslaved in a foreign land, and Moses informed the people that they will, in the future, worship idolatry. Don’t these verses indicate that the Egyptians and future Israelites had no choice but to act wickedly?