Malik related to me that Ibn Shihab informed him that a manconfessed that he had committed adultery in the time of the Messengerof Allah, may Allah bless him and grant him peace, and he testifiedagainst himself four times, so the Messenger of Allah, may Allah blesshim and grant him peace, gave the order and he was stoned.Ibn Shihab said, "Because of this a man is to be taken for his ownconfession against himself."
USC-MSA web (English) reference: Book 41, Hadith 4
Arabic reference: Book 41, Hadith 1506