Sayyiduna Ammar bin Yasir (may Allah be pleased with him) narrates: A woman passed by a man, and he kept staring at her. The man passed by a wall (that is, he collided with a wall) and his face was injured. When the man came to the Prophet (peace and blessings be upon him), blood was streaming from his face. He said: O Messenger of Allah, I have committed such a deed. The Prophet (peace and blessings be upon him) 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 otherwise for a servant, He grants him respite with regard to his sins until He repays him in full on the Day of Resurrection, and it will be like the mountain 'Ayr."
Al-Tabarani recorded it, and its chain is jayyid (good).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب التوبة / 17472