It is narrated from Sayyiduna Abdullah bin Mughaffal (may Allah be pleased with him) that a man met a woman who used to practise prostitution in the time of ignorance (Jahiliyyah). The man began to flirt with her until he stretched out his hand towards her. The woman said: "Stop! Allah Almighty has done away with polytheism and brought Islam." So the man left her and turned away, and as he walked he kept turning to look back at the woman until his face struck a wall. Then he came to the Prophet (peace and blessings be upon him) with blood flowing down his face and told him (peace and blessings be upon him) the whole incident. He (peace and blessings be upon him) said: "You are a servant for whom Allah intends good." Then he said: "When Allah Almighty intends good for a servant, He hastens the punishment of his sin for him (in this world); and when He intends evil for a servant, He holds back the punishment of his sin (in this world) until He repays him in full on the Day of Resurrection, as though he comes like a laden caravan."
Abu Bakr bin Abi Shaybah, Ahmad bin Hanbal and Abu Ya'la recorded it, and Ibn Hibban recorded it in his Sahih. This hadith also has a corroborating report (shahid) from the narration of Sayyiduna Anas (may Allah be pleased with him), which al-Tirmidhi and al-Hakim recorded.