All deeds, conveyances, contracts, and other instruments of writing wherein it shall be the intention of the parties executing the same to grant, bargain, sell, and convey any lands, tenements, or hereditaments situate in this Commonwealth, upon being acknowledged by the parties executing the same or proved in the manner provided by the laws of this Commonwealth, shall be recorded in the office for the recording of deeds in the county where such lands, tenements, and hereditaments are situate. Every such deed, conveyance, contract, or other instrument of writing which shall not be acknowledged or proved and recorded, as aforesaid, shall be adjudged fraudulent and void as to any subsequent bona fide purchaser or mortgagee or holder of any judgment, duly entered in the prothonotary's office of the county in which the lands, tenements, or hereditaments are situate, without actual or constructive notice unless such deed, conveyance, contract, or instrument of writing shall be recorded, as aforesaid, before the recording of the deed or conveyance or the entry of the judgment under which such subsequent purchaser, mortgagee, or judgment creditor shall claim. Nothing contained in this act shall be construed to repeal or modify any law providing for the lien of purchase money mortgages.
21 P.S. § 351