I am a little confused with the facts. You had already moved out but were also rendered homeless by the foreclosure?
General advice based on limited facts. No attorney-client relationship created.
Good afternoon. You should set up an appointment with the legal aid office in your area. I suspect you would qualify based on income/housing situation. Good luck!