Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) narrated from the Prophet (peace and blessings be upon him) that a man came and confessed to adultery and also named the woman. The Prophet (peace and blessings be upon him) had the woman asked, and she denied it; so he (peace and blessings be upon him) had the man flogged and let the woman go.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17002