From Sahih Muslim (Hadith 4430):
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
Reference: Muslim 4430