The lease agreement by law will remain valid until the expiry date on the lease agreement, regardless of whether the property is sold or not. The new owner will remain responsible to respect the lease agreement unless another mutual agreement was made between yourself and the new landlord.