Hazrat Ibn Abbas (may Allah be pleased with them both) says that after the husband passes away, the woman can leave his house.