It is narrated from Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) that a man came to the Prophet (peace and blessings be upon him) and confessed before him that he had committed adultery with a certain woman. The Messenger of Allah (peace and blessings be upon him) sent for the woman and asked her about it, and she denied having committed adultery. So he (peace and blessings be upon him) carried out the prescribed punishment (hadd) on the man and let the woman go.
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 5903