"prescience," 1530s, from fore- + knowledge. Earlier in this sense was foreknowing (late 14c.), from foreknow "have previous knowledge of, know beforehand." Old English had forewitan, Middle English forwiten "to foreknow."
Middle English for-, fore-, from Old English fore-, often for- or foran-, from fore (adv. & prep.), which was used as a prefix in Old English as in other Germanic languages with a sense of "before in time, rank, position," etc., or designating the front part or earliest time.
early 12c., cnawlece "acknowledgment of a superior, honor, worship;" for first element see know (v.). The second element is obscure, perhaps from Scandinavian and cognate with the -lock "action, process," found in wedlock.
From late 14c. as "capacity for knowing, understanding; familiarity;" also "fact or condition of knowing, awareness of a fact;" also "news, notice, information; learning; organized body of facts or teachings." Sense of "sexual intercourse" is from c. 1400. Middle English also had a verb form, knoulechen "acknowledge" (c. 1200), later "find out about; recognize," and "to have sexual intercourse with" (c. 1300); compare acknowledge.
<a href="https://www.etymonline.com/word/foreknowledge">Etymology of foreknowledge by etymonline</a>
Harper, D. (n.d.). Etymology of foreknowledge. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/foreknowledge