Sahih Muslim Book 17, Hadith Number 4200.
Chapter : He who confesses his guilt of adultery.
This hadith has been narrated on the authority of Jabir b. Samura through another chain of transmitters with the difference that along with the mentioning (of the fact) that he (the Holy Prophet) turned him away twice, or thrice.