I entered ihram for Hajj and on the morning of the day on which I was going to do tawaaf al-ifaadah, I woke up and I though that I had had an erotic dream, but I was not sure, and I did tawaaf al-ifaadah although I was not sure. I hope that you can advise me as to exactly what I have to do. Please note that I am now living in Jeddah, but when I entered ihram for Hajj I did so from Egypt, but now I cannot go back and enter ihraam from Egypt. I am afraid that my Hajj may not be valid.
Purity – greater and lesser – is a condition of tawaaf being valid according to the majority of scholars. If a person does tawaaf when he is in a state of greater or lesser impurity (if he is junub or has broken his wudoo’) his tawaaf is not valid and he has not exited ihram fully, so it is forbidden for him to have intercourse, and he has not exited ihram until he performs tawaaf.
If a person is not sure whether he is taahir and is uncertain about that, then he does not have to do ghusl, because the basic principle is that a person is taahir. Based on this, your tawaaf is valid so long as you were not certain that you had had an erotic dream and did not see any maniy (fluid emitted at climax). So there is no need to worry in this case.
And Allaah knows best.