Al-Hakam bin Aban said: I asked Salim bin Abdullah about a man who commits adultery with a woman and then marries her. He said: Sayyiduna Ibn Mas'ud (may Allah be pleased with him) was asked this question, and he said: "And it is He who accepts repentance from His servants and pardons evil deeds" [Surah al-Shura: 25].
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9636