Although the word omniscience never appears in the Bible, the concepts that God knows everything are well documented. You search out my path and my lying down, and are acquainted with all my ways. Clearly, according to scripture, God knows it all. Because foreknowledge means neither predestination nor does it imply intervention. Though there are no good parallel examples that we can use for a better understanding, but a poor attempt will have to suffice.
Meteorologists have the capability to predict rather accurately the path of a hurricane.
Of course there is room for error, but if a storm is barreling down on the Louisiana shoreline there is plenty of time to warn the residents there. The governor can call for an evacuation of the town, the National Guard can try to enforce it, but there are always some who do not comply. When God created humanity we were given the greatest gift a god could bestow pure freewill. Humans have the ability to choose good or evil, right or wrong, and to embrace or reject their creator. That's a powerful gift.