Ibn al-Musayyib (may Allah have mercy on him) said that a man of the tribe of Aslam came to Sayyiduna Abu Bakr (may Allah be pleased with him) and confessed to adultery. Sayyiduna Abu Bakr (may Allah be pleased with him) asked: Have you told anyone besides me? He said: No. He said: Then repent and keep it concealed. But he could not hold himself back. He told Sayyiduna Umar (may Allah be pleased with him), and Sayyiduna Umar (may Allah be pleased with him) also gave the same answer as Sayyiduna Abu Bakr (may Allah be pleased with him). Then he came to the Prophet (peace and blessings be upon him). He (peace and blessings be upon him) turned away from him, but after his repeated insistence he (peace and blessings be upon him) had his family asked: "Is he not insane?" They said: No, he is perfectly sound. Then the Prophet (peace and blessings be upon him) asked: "Are you married or unmarried?" He said: Married. So he (peace and blessings be upon him) ordered him to be stoned.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 16999