Your home insurance gets null and void the moment you transfer the ownership or sell your insured house.

The insurance company will reimburse you the remaining premium for the remaining period of the insurance.