Your question leaves many questions unswered. How does your divorce decree decide who will live in the house? If is the both of you then he cannot evict you. If it gives his the use of the house to him, then he must get out. The devorce decree governs until the foreclosure sale takes place. The fact that a foreslosure is taking place, does not change the divorce decree.
Sign up to receive a 10-part series of useful information and legal advice about the divorce process.