generally house owner should leave the house before foreclosure because in the rules and regulations of many banks that when they have issued the notice of foreclosure then accoridngly owner should leave the house before foreclosure.
But there is another possiblity too that
you can stay in your home if wells fargo or the person who have bought your house permitts you to stay in it.
You can discuss with them the time limit,
up to that you can stay in your foreclosed house.
By this discussion i think your problem can be solved.