Knowing something will happen is different than causing it to happen.
People yes, but even for God? Can God be wrong about something He knows will happen?