Ibn Sirin was an extremely good-looking and elegant youth, and a cloth-merchant by profession. Once it so happened that a woman became enchanted with his looks; she expressed her desire to purchase cloth from him upon the condition that he should deliver it to her house, whereupon she would hand him the money.
As he reached her house and entered it, she immediately bolted the door and invited him to commit fornication. Aghast, the youth said: “I seek refuge in Allah”, and then proceeded to lecture her about the reproach associated with the obscene act.
However when he observed that his words failed to have any effect upon the woman, he decided to resort to deception in order to extricate himself from his quandary.
He sought her permission to use the lavatory. Procuring her permission he entered the lavatory, dirtied himself with excrement and then approached her.
The woman, seeing him in that odious state, felt revolted and promptly turned him out of her house. Due to this abstinence on his part with respect to fornication, Allah graced him with the science of interpretation of dreams. ( Shaytan, vol. 1, pg. 678 )