Your query lacks the details necessary to provide a meaningful answer. The key question is: Who owns (holds title to) the property? Was the property surrendered in bankruptcy? Where you say 'foreclosure failed,' was the foreclosure case dismissed? Too many unknowns.
You need to discuss this with your bankruptcy attorney and/or a foreclosure defense attorney.