In most states, you have a right of redemption, which permits a person to purchase their home back from whoever bought it at the foreclosure sale provided they have a sufficient lump sum including the full amount the buyer paid and certain other fees.