Few questions are as fascinating as this one. If God is all-knowing, then He would have known from the very beginning that ...
God, who at sundry times and in divers manners spake in time past unto the fathers by the prophets, hath in these last days ...
Religious types argue that the idea of free will put in place the imperfection in the universe, as many of us chose evil and rejected God. But the free choice is still more precious than perfection.