Then the writings are irrational and should be rejected. You can't have it both ways.“Every act ye meditate is as clear to Him as is that act when already accomplished. There is none other God besides Him. His is all creation and its empire. All stands revealed before Him; all is recorded in His holy and hidden Tablets. This fore-knowledge of God, however, should not be regarded as having caused the actions of men, just as your own previous knowledge that a certain event is to occur, or your desire that it should happen, is not and can never be the reason for its occurrence.”
Gleanings From the Writings of Bahá’u’lláh, p. 150
You can't have a God that knows what you are going to do before it creates you, but creates you nonetheless. The God IS the cause. The human is just the agent. There is no free will to act any way other than what God knows will happen. God doesn't get surprised, does it?