Foreclosures are one of the worst ways of leaving a house. Imagine leaving it without any money nor any place to go to. So if you can’t pay the debt to the lender or mortgagee, the best thing to do is to sell the house before anything happens. This way, you leave with some money in your pocket to start again somewhere.
Here are some reasons why it is better top sell then borrow money to pay a debt:
If you sell before foreclosure the sales contract will immediately stop the foreclosure process, since what the lender wants is the money that they have loaned you during your mortgage loan agreement.
Another reason to sell before foreclosure is that you could sell your house or your real property for the current market value.
Protecting your credit is another reason why you should sell before foreclosure. If you house or your property has been foreclosed surely this will have a big effect on your credit record.
When you sell before foreclosure you will not be asked to vacate your previous house immediately, you will be given an ample amount of time to move out.
Source