Hello. Thank you for using JustAnswer.
When a property is foreclosed and sells at auction, the winning bidder (usually the bank holding the mortgage) will sometimes attempt to force the former homeowner out through an eviction.
Since the homeowner was married at the time, they would include you in the lawsuit. Since they likely served the lawsuit on your wife, but not you, and, apparently, your wife never told you, a default judgment was likely entered against you.
You can challenge that judgment by filing a "motion to vacate" in the court that issued the eviction order.
However, you can also file a dispute with the credit reporting agencies asserting you were never evicted and demanding that they prove that you were properly evicted. Here's a web address that describes how to do that:
Please let me know what follow-up questions you have. If my above responses have been helpful, please click Accept so that I get credit for the time/effort. You may always restart the thread and ask follow-up questions at any time by clicking the “Reply” button at the bottom of the question/answer thread. You can access this thread later in your profile under the “My Questions” tab.