After performing the pilgrimage, a person stayed several days in Makkah. One day he was in the Haram when he fell asleep close to the outside gates. He woke up after nightfall, and he went straight to his accommodation. He was very depressed that this should have happened in the Haram. He wonders how should he compensate for his sin? Could you please explain and also tell us if the same compensation applies, should the same thing happen in Madinah.
I am not clear what the reader is talking about. Does he consider the mere fact that a person was overtaken by sleep in the Haram to be a sin? If so, then he is grossly mistaken. People do fall asleep in the Haram because they are tired or have not slept well the previous night. It is true that people should not use a mosque, let alone the Haram in Makkah, for sleeping, but if they sleep or have a nap there, no sin is incurred.
Or perhaps the reader means that this person had a wet dream when he was asleep. This may be what he means by his usage of the phrase “night fall” in his description. Anyway, if this is what he means, then again there is no sin involved. Sleeping people are unconscious and cannot be responsible for what happens to them during their sleep. Besides a wet dream is a physiological function over which a man has no control. God holds us to account only for actions that we do consciously and deliberately. A wet dream does not fall into this category.
All that this person had to do was to go to his lodgings, have a shower and offer his prayers normally. He should not be in distress over something in which he had no say.