Muhammad (Ibn Sirin) (may Allah have mercy on him) used to instruct a woman in such a situation to flee from the man.