If you sold your house (or give it up in foreclosure) to a non-related person, and there was no gain on the sale, your repayment may be reduced or eliminated. When you get to the Deductions & Credits section of your Federal return, you'll find Homebuyer Credit Repayment under Your Home. When you complete this section we'll determine how much you have to repay.
https://ttlc.intuit.com/replies/5392736