Sahih Muslim Book 17, Hadith Number 4204.
Chapter : He who confesses his guilt of adultery.
This hadith has been narrated on the authority of Dawud with the same chain of transmitters but with this variation that in the hadith narrated by Sufyan (the words are): “He made a confession of having committed adultery, thrice.”