Blocking the ways to evil is a basic shar`i rule, and for this Allah has prohibited looking lustfully to women and being alone with them, since this naturally leads to temptation with them and may end with zina (illegitimate sexual intercourse). Almighty Allah wishes that people be chaste and be away from doubtful matters.

We have to say that we are really astonished with what you have done, since this goes against your decency and most importantly against the guidelines of Islam. You are required to repent to Allah for what you have done and not to do so anymore.

In response to your question, the Standing Committee for Islamic Research and Ifta’ stated,

It is haram (prohibited by Allah) for a man to be alone with a non-mahram woman, even if it is for the purpose of treating her with ruqyah.

Prophet Muhammad (peace and blessings be upon him) said, “No man is alone with a [non-mahram] woman, but Satan is the third one present” (Ahmad and At-Tirmidhi).

Yet, what is more heinous and sinful than being alone with this man is your staying an overnight in his house though he is a stranger (non-mahram) to you. Staying in his house for a number of nights and days, and being alone with him are means leading to evil and corruption.

Any Muslim woman who has done such a thing has to repent sincerely to Allah from that, and not go back to such evil.