From Middle English afore, aforn, from Old English onforan or ætforan; equivalent to a- + fore.
Practice speaking and memorizing "afore" and many other words and sentences in English.